loglikcushcov: Log-likelihood function for a CUSH model with covariates

View source: R/loglikcushcov.R

loglikcushcovR Documentation

Log-likelihood function for a CUSH model with covariates

Description

Compute the log-likelihood function for a CUSH model with covariates for the given ordinal responses.

Usage

loglikcushcov(m, ordinal, X, omega, shelter)

Arguments

m

Number of ordinal categories

ordinal

Vector of ordinal responses

X

Matrix of selected covariates for explaining the shelter parameter

omega

Vector of parameters for explaining the shelter effect, with length equal to NCOL(X)+1 to account for an intercept term (first entry of omega)

shelter

Category corresponding to the shelter choice


CUB documentation built on May 29, 2024, 5:23 a.m.