powered by
Generate \(n\) pseudo-random observations following the distribution of a CUSH model without covariates.
simcush(n,m,delta,shelter)
Number of simulated observations
Number of ordinal categories
Shelter parameter
Category corresponding to the shelter choice
probcush
n<-200 m<-7 delta<-0.3 shelter<-3 simulation<-simcush(n,m,delta,shelter) plot(table(simulation),xlab="Ordinal categories",ylab="Frequencies")
Run the code above in your browser using DataLab