Description Usage Arguments Value Examples
Generate data for a multilevel outcome
1 2 3 |
fixed |
a formula with RHS only that specifies the variables to use |
fixed_param |
a vector of numerics for the coefficients of variables in fixed |
random_var |
a numeric, length 1, variance of random (school level) component |
fact_vars |
for each variable in fixed that is a factor, a definition... |
cov_param |
a list, defining any continuous variables |
cor_vars |
correlations between fixed variables |
ngrps |
number of schools |
unbalanceRange |
range of enrollments in each school |
type |
character, either "binary" or "linear" to choose outcome variable type to generate |
with_err_gen |
name of a distribution function to generate the errors, optional |
error_var |
integer values to pass to err_gen, optional |
a list with two elements
1 | zed2 <- do.call(gen_outcome_model, sim_control()$gpa_sim_parameters)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.