Learn R Programming

CUB (version 1.1.5)

betar: Beta-Binomial distribution

Description

Return the Beta-Binomial distribution with parameters \(m\), \(csi\) and \(phi\).

Usage

betar(m,csi,phi)

Value

The vector of length \(m\) of the Beta-Binomial distribution.

Arguments

m

Number of ordinal categories

csi

Feeling parameter of the Beta-Binomial distribution

phi

Overdispersion parameter of the Beta-Binomial distribution

References

Iannario, M. (2014). Modelling Uncertainty and Overdispersion in Ordinal Data, Communications in Statistics - Theory and Methods, 43, 771--786

See Also

betabinomial

Examples

Run this code
m<-9
csi<-0.8
phi<-0.2
pr<-betar(m,csi,phi)
plot(1:m,pr,type="h", main="Beta-Binomial distribution",xlab="Ordinal categories")
points(1:m,pr,pch=19)

Run the code above in your browser using DataLab