simcush | R Documentation |
Generate n
pseudo-random observations following the distribution of a CUSH
model without covariates.
simcush(n,m,delta,shelter)
n |
Number of simulated observations |
m |
Number of ordinal categories |
delta |
Shelter parameter |
shelter |
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.