Compute the log-likelihood function of a CUB model fitting ordinal data, with \(q\) covariates for explaining the feeling component.
loglikcub0q(m, ordinal, W, pai, gama)
Number of ordinal categories
Vector of ordinal responses
Matrix of selected covariates for explaining the feeling component
Uncertainty parameter
Vector of parameters for the feeling component, with length NCOL(W) + 1 to account for an intercept term (first entry of gama)