Description Usage Arguments Examples
View source: R/model_comparison.R
Takes a model and a factor to add and returns a new model with the additional factor to add. Used by the step_up function.
1 | convert_to_model(model, to_add, dat, type)
|
model |
original model |
to_add |
vector of strings of names of the factors to test |
dat |
name of the dataframe |
type |
type of model. Options are 'glmBinomial', 'glm', 'lmer', 'glmer' (binomial), 'gam', or 'gamBinomial' |
1 2 | step_up(myModel, c("gender", "region", "age"), dat="myData", type="lmer")
convert_to_model()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.