convert_to_model: Convert to Model

Description Usage Arguments Examples

View source: R/model_comparison.R

Description

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.

Usage

1
convert_to_model(model, to_add, dat, type)

Arguments

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'

Examples

1
2
step_up(myModel, c("gender", "region", "age"), dat="myData", type="lmer")
convert_to_model()

supermartha/marthaTools documentation built on July 26, 2020, 1:44 p.m.