Learn R Programming

CUB (version 0.1)

probcubshe2: probcubshe2

Description

Probability distribution of a CUB model with explicit shelter effect

Usage

probcubshe2(m, pai, csi, delta, shelter)

Arguments

m
Number of ordinal categories
pai
Uncertainty parameter
csi
Feeling parameter
delta
Shelter parameter
shelter
Category corresponding to the shelter choice

Value

The vector of the probability distribution of a CUB model with explicit shelter effect

Details

A CUB model with explicit shelter effect is a mixture of two components: a CUB distribution with uncertainty parameter $\pi$ and feeling parameter $\xi$, and a degenerate distribution with unit mass at the shelter category ("shelter") with mixing coefficient specified by $\delta$.

References

Iannario M. (2012). Modelling shelter choices in a class of mixture models for ordinal responses, Statistical Methods and Applications, 21, 1--22 Iannario M. and Piccolo D. (2014). Inference for CUB models: a program in R, Statistica & Applicazioni, XII n.2, 177--204 Iannario M. and Piccolo D. (2014). A comprehensive approach to ordinal data modelling, Working paper

See Also

probcubshe1, probcubshe3

Examples

Run this code
m<-8
pai1<-0.5
pai2<-0.3
csi<-0.4
shelter<-6
delta<-1-pai1-pai2
pai<-pai1/(1-delta)
pr2<-probcubshe2(m, pai, csi, delta, shelter)
plot(1:m,pr2,type="h", main="CUB probability distribution with 
explicit shelter effect",xlab="Ordinal categories")
points(1:m,pr2,pch=19)

Run the code above in your browser using DataLab