Learn R Programming

CUB (version 0.1)

probcub00: Probability distribution of a CUB model without covariates

Description

Compute the probability distribution of a CUB model without covariates.

Usage

probcub00(m, pai, csi)

Arguments

m
Number of ordinal categories
pai
Uncertainty parameter
csi
Feeling parameter

Value

The vector of the probability distribution of a CUB model

References

Piccolo D. (2003). On the moments of a mixture of uniform and shifted binomial random variables. Quaderni di Statistica, 5, 85--104 Iannario M. and Piccolo D. (2012). CUB models: Statistical methods and empirical evidence, in: Kenett R. S. and Salini S. (eds.), Modern Analysis of Customer Surveys: with applications using R, J. Wiley and Sons, Chichester, 231--258

Examples

Run this code
m<-9
pai<-0.3
csi<-0.8
pr<-probcub00(m, pai, csi)
plot(1:m,pr,type="h",main="CUB probability distribution",xlab="Ordinal categories")
points(1:m,pr,pch=19)

Run the code above in your browser using DataLab