Learn R Programming

FastCUB (version 0.0.2)

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, beta0, gama)

Arguments

m

Number of ordinal categories

ordinal

Vector of ordinal responses

W

Matrix of selected covariates for explaining the feeling component

beta0

Logit transform of 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)