questionnaire_gen_polychoric {lsasim}R Documentation

Generation of ordinal and continuous variables

Description

Creates a data frame of discrete and continuous variables based on a latent correlation matrix and marginal proportions.

Usage

questionnaire_gen_polychoric(n_obs, cat_prop, cor_matrix, c_mean, c_sd, theta)

Arguments

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 TRUE will label the first continuous variable 'theta'.


[Package lsasim version 2.1.5 Index]