Learn R Programming

CUB (version 1.1.5)

simcube: Simulation routine for CUBE models

Description

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

Usage

simcube(n,m,pai,csi,phi)

Arguments

n

Number of simulated observations

m

Number of ordinal categories

pai

Uncertainty parameter

csi

Feeling parameter

phi

Overdispersion parameter

See Also

probcube

Examples

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

Run the code above in your browser using DataLab