View source: R/lme_model_explore.R
lme_model_explore | R Documentation |
Exploratory analyses for linear regression models with multiple response, predictor, and two-way interaction variables. (lmer
models).
At the moment, multi-categorical variables are not supported as predictors or interactions (but control is fine). Binary variable should be numeric
instead of factor
This function also do not supports changing random slopes.
lme_model_explore(
...,
data,
response_variable,
predictor_variable,
two_way_interaction_variable = NULL,
three_way_interaction_variable = NULL,
random_effect,
control_variable = NULL,
marginal_alpha = 0.1,
return_result = FALSE,
print_control = FALSE,
verbose = TRUE,
show_p = TRUE,
show_formula = FALSE
)
... |
additional parameters pass to lme4::lmer() |
data |
|
response_variable |
Response variable. Support |
predictor_variable |
Pred variable. Support |
two_way_interaction_variable |
Two-way interaction variable. Each two-way interaction variable will interact with each pred variable. Support |
three_way_interaction_variable |
Three-way interaction variable. Each three-way interaction variable will interact with each pred and two-way interaction variables. Support |
random_effect |
The random-effects terms in the format of |
control_variable |
Control variables. Support |
marginal_alpha |
Set marginal_alpha level for marginally significant (denoted by |
return_result |
Default is |
print_control |
Default is |
verbose |
Default is |
show_p |
Default is |
show_formula |
Default is |
data.frame
lme_model_explore(data = popular,
response_variable = c(popular,extrav),
predictor_variable = c(texp),
two_way_interaction_variable = sex,
random_effect = '(1 | class)')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.