Learn R Programming

lsasim (version 2.1.6)

gen_variable_n: Randomly generate the quantity of background variables

Description

Randomly generate the quantity of background variables

Usage

gen_variable_n(n_vars, n_X, n_W, theta = FALSE)

Value

vector with n_vars, n_X and n_W

Arguments

n_vars

number of variables in total (n_X + n_W + theta)

n_X

number of continuous variables

n_W

number of categorical variables

theta

number of latent variables