probgecub function

Probability distribution of a GeCUB model

Probability distribution of a GeCUB model

Compute the probability distribution of a GeCUB model, that is a CUB model with shelter effect with covariates specified for all component.

probgecub(ordinal,Y,W,X,bet,gama,omega,shelter)

Arguments

  • ordinal: Vector of ordinal responses
  • Y: Matrix of covariates for explaining the uncertainty component
  • W: Matrix of covariates for explaining the feeling component
  • X: Matrix of covariates for explaining the shelter effect
  • bet: Vector of parameters for the uncertainty component, whose length equals NCOL(Y)+1 to include an intercept term in the model (first entry)
  • gama: Vector of parameters for the feeling component, whose length equals NCOL(W)+1 to include an intercept term in the model (first entry)
  • omega: Vector of parameters for the shelter effect, whose length equals NCOL(X)+1 to include an intercept term in the model (first entry)
  • shelter: Category corresponding to the shelter choice

Returns

A vector of the same length as ordinal, whose i-th component is the probability of the i-th observation according to a GeCUB model with the corresponding values of the covariates for all the components and coefficients specified in bet, gama, omega.

References

Iannario M. and Piccolo D. (2016b). A generalized framework for modelling ordinal data. Statistical Methods and Applications, 25 , 163--189.

  • Maintainer: Rosaria Simone
  • License: GPL-2 | GPL-3
  • Last published: 2024-02-23

Useful links