ordinal.data
generates ordered category response data (with p covariates and a treatment variable).
ordinal.data(n = 400, p = 10, R = 11, delta = 1, s = "nonlinear")
sample size.
dimension of covariates.
number of response levels in y
magnitude of "main" effect (i.e., "nuisance" effect) of the covariates; a large delta means a larger "nuisance" variance.
type of the treatment-by-covariates interation effect ("linear" or "nonlinear")
a n-by-1 vector of treatment outcomes.
a n-by-1 vector of treatment indicators.
a n-by-p matrix of pretreatment covariates.
the "signal" (interaction effect) to "nuisance" (main effect) variance ratio (SNR) in the canonical parameter function.
the true single-index coefficient vector.
magnitude of "main" effect.
type of the treatment-by-covariates interation effect.