simihg function

Simulation routine for IHG models

Simulation routine for IHG models

Generate nn pseudo-random observations following the given IHG distribution.

simihg(n,m,theta)

Arguments

  • n: Number of simulated observations
  • m: Number of ordinal categories
  • theta: Preference parameter

Examples

n<-300 m<-9 theta<-0.4 simulation<-simihg(n,m,theta) plot(table(simulation),xlab="Number of categories",ylab="Frequencies")

See Also

probihg

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

Useful links