simcubshe: Simulation routine for CUB models with shelter effect

Description Usage Arguments See Also Examples

View source: R/simcubshe.R

Description

Generate n pseudo-random observations following the given CUB distribution with shelter effect.

Usage

1
simcubshe(n,m,pai,csi,delta,shelter)

Arguments

n

Number of simulated observations

m

Number of ordinal categories

pai

Uncertainty parameter

csi

Feeling parameter

delta

Shelter parameter

shelter

Category corresponding to the shelter choice

See Also

probcubshe1, probcubshe2, probcubshe3

Examples

1
2
3
4
5
6
7
8
n<-300
m<-9
pai<-0.7
csi<-0.3
delta<-0.2
shelter<-3
simulation<-simcubshe(n,m,pai,csi,delta,shelter)
plot(table(simulation),xlab="Ordinal categories",ylab="Frequencies")

CUB documentation built on March 31, 2020, 5:14 p.m.