Simulation routine for CUSH models without covariates

Description

Fit CUSH models without covariates to given ordinal data. It is useful for simulation experiments since it performs the same steps as CUSH, but with no printed output.

Usage

1
cushforsim(m, ordinal, shelter)

Arguments

m

Number of ordinal categories

ordinal

Vector of ordinal responses

shelter

Category corresponding to the shelter choice

Value

An object of the class "CUSH", with null output for $BIC since the routine is only for simulation purposes

See Also

CUSH

Examples

1
2
3
4
5
6
7
8
data(relgoods)
m<-10
ordinal<-na.omit(relgoods[,45])
shelter<-1
simul<-cushforsim(m, ordinal, shelter)
simul$estimates
simul$loglik
simul$varmat

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.