Learn R Programming

CUB (version 0.1)

probcush: Probability distribution of a CUSH model

Description

Compute the probability distribution of a CUSH model without covariates.

Usage

probcush(m, delta, shelter)

Arguments

m
Number of ordinal categories
delta
Shelter parameter
shelter
Category corresponding to the shelter choice

Value

The vector of the probability distribution of a CUSH model without covariates

References

Capecchi S. and Piccolo D. (2015). Dealing with heterogeneity/uncertainty in sample survey with ordinal data, IFCS Proceedings, University of Bologna Capecchi S and Iannario M. (2015). Gini heterogeneity index for detecting uncertainty in ordinal data surveys, Metron - DOI: 10.1007/s40300-016-0088-5

See Also

CUSH

Examples

Run this code
m<-10
shelter<-1
delta<-0.4
pr<-probcush(m, delta, shelter)
plot(1:m,pr,type="h",xlab="Number of categories")
points(1:m,pr,pch=19)

Run the code above in your browser using DataLab