Learn R Programming

CUB (version 1.1.5)

probihg: Probability distribution of an IHG model

Description

Compute the probability distribution of an IHG model (Inverse Hypergeometric) without covariates.

Usage

probihg(m,theta)

Value

The vector of the probability distribution of an IHG model.

Arguments

m

Number of ordinal categories

theta

Preference parameter

References

D'Elia A. (2003). Modelling ranks using the inverse hypergeometric distribution, Statistical Modelling: an International Journal, 3, 65--78

Examples

Run this code
m<-10
theta<-0.30
pr<-probihg(m,theta)
plot(1:m,pr,type="h",xlab="Ordinal categories")
points(1:m,pr,pch=19)

Run the code above in your browser using DataLab