Creates a data frame of discrete and continuous variables based on a latent correlation matrix and marginal proportions.
questionnaire_gen_family(
n_obs,
cat_prop,
cov_matrix,
family = "gaussian",
theta = FALSE,
mean_yx = NULL,
n_cats
)
number of observations to generate.
list of cumulative proportions for each item.
covariance matrix. between the latent trait (Y) and the background variables (X and Z).
distribution of the background variables. Can be NULL or 'gaussian'.
if TRUE
will label the first continuous variable 'theta'.
vector with the means of the latent trait (Y) and the continuous background variables with flexible variance (X).
vector with number of categories for each W.