simcubshe function

Simulation routine for CUB models with shelter effect

Simulation routine for CUB models with shelter effect

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

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

Examples

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")

See Also

probcubshe1, probcubshe2, probcubshe3

  • Maintainer: Rosaria Simone
  • License: GPL-2 | GPL-3
  • Last published: 2024-02-23

Useful links