Learn R Programming

CUB (version 1.1.5)

loglikcub0q: Log-likelihood function of a CUB model with covariates for the feeling component

Description

Compute the log-likelihood function of a CUB model fitting ordinal data, with \(q\) covariates for explaining the feeling component.

Usage

loglikcub0q(m, ordinal, W, pai, gama)

Arguments

m

Number of ordinal categories

ordinal

Vector of ordinal responses

W

Matrix of selected covariates for explaining the feeling component

pai

Uncertainty parameter

gama

Vector of parameters for the feeling component, with length NCOL(W) + 1 to account for an intercept term (first entry of gama)