Learn R Programming

CUB (version 0.1)

probcubshe1: probcubshe1

Description

Probability distribution of an extended CUB model with a shelter effect.

Usage

probcubshe1(m, pai1, pai2, csi, shelter)

Arguments

m
Number of ordinal categories
pai1
Mixing coefficient for the shifted Binomial component of the mixture distribution
pai2
Mixing coefficient for the discrete Uniform component of the mixture distribution
csi
Feeling parameter
shelter
Category corresponding to the shelter choice

Value

The vector of the probability distribution of an extended CUB model with a shelter effect at the shelter category

Details

An extended CUB model is a mixture of three components: a shifted Binomial distribution with probability of success $\xi$, a discrete uniform distribution with support $\{1,...,m\}$, and a degenerate distribution with unit mass at the shelter category ("shelter").

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

probcubshe2, probcubshe3

Examples

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

Run the code above in your browser using DataLab