loglikcubpq function

Log-likelihood function of a CUB model with covariates for both feeling and uncertainty

Log-likelihood function of a CUB model with covariates for both feeling and uncertainty

Compute the log-likelihood function of a CUB model fitting ordinal data with covariates for explaining both the feeling and the uncertainty components.

loglikcubpq(m, ordinal, Y, W, bet, gama)

Arguments

  • m: Number of ordinal categories
  • ordinal: Vector of ordinal responses
  • Y: Matrix of selected covariates for explaining the uncertainty component
  • W: Matrix of selected covariates for explaining the feeling 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 bbet)
  • gama: Vector of parameters for the feeling component, whose length equals NCOL(W) + 1 to account for an intercept term (first entry of gama)
  • Maintainer: Rosaria Simone
  • License: GPL-2 | GPL-3
  • Last published: 2024-02-23

Useful links

    Downloads (last 30 days):