lcpmMinusloglik: The Negative Log-Likelihood Function for a Log Cumulative...

Description Usage Arguments Value

View source: R/lcpmMinusloglik.R

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

1
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


lcpm documentation built on Jan. 9, 2020, 9:07 a.m.

Related to lcpmMinusloglik in lcpm...