probgecub {CUB} | R Documentation |
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)
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 |
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
.
Iannario M. and Piccolo D. (2016b). A generalized framework for modelling ordinal data.
Statistical Methods and Applications, 25, 163–189.