Learn R Programming

CUB (version 1.1.5)

simcub: Simulation routine for CUB models

Description

Generate \(n\) pseudo-random observations following the given CUB distribution.

Usage

simcub(n,m,pai,csi)

Arguments

n

Number of simulated observations

m

Number of ordinal categories

pai

Uncertainty parameter

csi

Feeling parameter

See Also

probcub00

Examples

Run this code
n<-300
m<-9
pai<-0.4
csi<-0.7
simulation<-simcub(n,m,pai,csi)
plot(table(simulation),xlab="Ordinal categories",ylab="Frequencies")

Run the code above in your browser using DataLab