Learn R Programming

CUB (version 1.1.5)

probgecub: Probability distribution of a GeCUB model

Description

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

Usage

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

Value

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.

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

References

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