.run_single_glm | R Documentation |
Split data at cutpoint j and run a binary regression with the given link function.
.run_single_glm( ord_data, mdl_fx, coef_fx, model_formula, response_var, j, .link = "logit", control = list() )
ord_data |
Ordinal dataframe |
mdl_fx |
Model function to use, either glm or glmer |
coef_fx |
Coefficient function to use, either fixef or coef |
model_formula |
Model formula to evaluate |
response_var |
LHS of the formula |
j |
Cutpoint value |
.link |
Link function, default is logit (ie logistic regression) |
control |
Control to use for mixed models, will default to bobyqa if not specified |
Dataframe with binary regression results
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.