View source: R/write_formula.R
write_formula | R Documentation |
write_formula
write_formula( response_var = "y", predictor_var = NULL, level1_id = "stu_id", level2_id1 = "sch_id_1", level3_id1 = NULL, random_l1_var = NULL, random_l2_var = NULL, random_l3_var = NULL, intercept = "1" )
response_var |
String. Gives the name of the response variable. Note:
if the response variable is not normally distributed, the link must be
included (see |
predictor_var |
A vector of strings. Gives the names of the predictor
variables (fixed effects). For an unconditional model, set
|
level1_id |
A string. Gives the name of the level-1 id variable. |
level2_id1 |
A string. Gives the name of the first level-2 id variable. |
level3_id1 |
A string. Gives the name of the first level-3 id variable. |
random_l1_var |
A vector of strings. Gives the names of the variables to be used to explain complex level-1 variation. |
random_l2_var |
A vector of strings. Gives the names of the variables to be used to explain complex level-2 variation. |
random_l3_var |
A vector of strings. Gives the names of the variables to be used to explain complex level-3 variation. |
intercept |
String. Indicates the value of the intercept. The intercept
defaults to 1. As of 2-10-21, |
A formula object.
## Not run: write_formula("y", c("x_predictor", "z_composite")) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.