lcpmMinusloglik {lcpm}R Documentation

The Negative Log-Likelihood Function for a Log Cumulative Probability Model

Description

lcpmMinusloglik provides the negative of the log-likelihood function for a Generalized Linear Model with a log link and ordinal outcomes to be minimized in functions lcpm and ppm.

Usage

lcpmMinusloglik(betapar, Xa1, XaJ, Xaj1, Xaj2)

Arguments

betapar

a vector of values.

Xa1

matrix of covariates for all subjects with the lowest ordinal outcome value 1.

XaJ

matrix of covariates for all subjects with the largest ordinal outcome value J.

Xaj1

matrix of covariates for all subjects with the ordinal outcomes with value 1 < j < J.

Xaj2

matrix of covariates for all subjects with the ordinal outcome with value 1 < j < J but lagged by 1.

Value

value of the negative log-likelihood evaluated at betapar


[Package lcpm version 0.1.1 Index]