View source: R/questionnaire_gen_polychoric.R
questionnaire_gen_polychoric | R Documentation |
Creates a data frame of discrete and continuous variables based on a latent correlation matrix and marginal proportions.
questionnaire_gen_polychoric(n_obs, cat_prop, cor_matrix, c_mean, c_sd, theta)
n_obs |
number of observations to generate. |
cat_prop |
list of cumulative proportions for each item. |
cor_matrix |
latent correlation matrix. |
c_mean |
is a vector of population means for each continuous variable. |
c_sd |
is a vector of population standard deviations for each continuous variable. |
theta |
if |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.