Learn R Programming

CUB (version 0.1)

simcube: Simulation routine for CUBE models

Description

Generate $n$ pseudo-random numbers according to the CUBE distribution with the given parameters.

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