loglikcubecov function

Log-likelihood function of a CUBE model with covariates

Log-likelihood function of a CUBE model with covariates

Compute the log-likelihood function of a CUBE model for ordinal responses, with covariates for explaining all the three parameters.

loglikcubecov(m, ordinal, Y, W, Z, bet, gama, alpha)

Arguments

  • m: Number of ordinal categories
  • ordinal: Vector of ordinal responses
  • Y: Matrix of covariates for explaining the uncertainty component
  • W: Matrix of covariates for explaining the feeling component
  • Z: Matrix of covariates for explaining the overdispersion component
  • bet: Vector of parameters for the uncertainty component, with length equal to NCOL(Y) + 1 to account for an intercept term (first entry of bet)
  • gama: Vector of parameters for the feeling component, with length equal to NCOL(W) + 1 to account for an intercept term (first entry of gama)
  • alpha: Vector of parameters for the overdispersion component, with length equal to NCOL(Z) + 1 to account for an intercept term (first entry of alpha)
  • Maintainer: Rosaria Simone
  • License: GPL-2 | GPL-3
  • Last published: 2024-02-23

Useful links