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
.
lcpmMinusloglik(betapar, Xa1, XaJ, Xaj1, Xaj2)
a vector of values.
matrix of covariates for all subjects with the lowest ordinal outcome value 1.
matrix of covariates for all subjects with the largest ordinal outcome value J.
matrix of covariates for all subjects with the ordinal outcomes with value 1 < j < J.
matrix of covariates for all subjects with the ordinal outcome with value 1 < j < J but lagged by 1.
value of the negative log-likelihood evaluated at betapar