prepare_model_components: Prepare model-components

Description Usage Arguments Value

Description

Prepare model-components

Usage

1
2
3
prepare_model_components(forms, data, predvars = NULL,
  standardize_x = FALSE, na.action = na.warn, contrasts = NULL,
  xlev = NULL, drop.unused.levels = FALSE)

Arguments

forms

A list of formulas.

data

A data.frame

predvars

The 'predvars' attribute of the terms object, from a previous call to this function.

standardize_x

Either a logical specifying whether to center/scale numeric predictors in the model.frame, or a list with names 'center' and 'scale', each of which in turn are named numeric vectors specifying centering/scaling. Defaults

na.action

A function specifying what to do with NAs. Defaults to na.warn.

contrasts

Passed to model.matrix.

xlev

Passed to model.frame.

drop.unused.levels

Passed to model.frame.

Value

A list of components useful for building models.


strongio/keanu documentation built on May 8, 2019, 11:16 p.m.