step_up: Step Up

Description Usage Arguments Examples

View source: R/model_comparison.R

Description

Takes a model and a vector of factors to step up with. Builds a model with each one added and does model comparison with the simpler model for each, returning p-values and AIC.

Usage

1
step_up(model, to_test, aic_only = TRUE, dat = "df_put", type = "glm")

Arguments

model

model to step up from

to_test

vector of factor names to add (as strings, not objects)

aic_only

Boolean, defaults to TRUE. Don't remember what this does.

dat

name of the dataframe

type

type of model. Options are 'glmBinomial', 'glm', 'lmer', 'gam', 'gamBinomial'. Defaults to 'glm'.

Examples

1

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