Usage
rmvlogis(n, thetas, IRT = TRUE, link = c("logit", "probit"),
distr = c("normal", "logistic", "log-normal", "uniform"),
z.vals = NULL)
rmvordlogis(n, thetas, IRT = TRUE, model = c("gpcm", "grm"),
link = c("logit", "probit"),
distr = c("normal", "logistic", "log-normal", "uniform"),
z.vals = NULL)Arguments
n
a scalar indicating the number of response patterns to simulate.
thetas
for rmvlogis() a numeric matrix with rows representing the items and columns the parameters.
For rmvordlogis() a list with numeric vector elements, with first the threshold parameters and last the discrimination
paramet
IRT
logical; if TRUE thetas are under the IRT parameterization.
See Details for more info.
model
from which model to simulate.
link
a character string indicating the link function to use. Options are logit and probit.
distr
a character string indicating the distribution of the latent variable. Options are Normal, Logistic,
log-Normal, and Uniform.
z.vals
a numeric vector of length n providing the values of the latent variable (ability) to be used
in the simulation of the dichotomous responses; if specified the value of distr is ignored.