simcush function

Simulation routine for CUSH models

Simulation routine for CUSH models

Generate nn pseudo-random observations following the distribution of a CUSH model without covariates.

simcush(n,m,delta,shelter)

Arguments

  • n: Number of simulated observations
  • m: Number of ordinal categories
  • delta: Shelter parameter
  • shelter: Category corresponding to the shelter choice

Examples

n<-200 m<-7 delta<-0.3 shelter<-3 simulation<-simcush(n,m,delta,shelter) plot(table(simulation),xlab="Ordinal categories",ylab="Frequencies")

See Also

probcush

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

Useful links