Learn R Programming

CUB (version 0.1)

simcub: Simulation routine for CUB models

Description

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

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