simcube {CUB} | R Documentation |
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
Examples
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")
[Package CUB version 1.1.5 Index]