Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

extend.formula

Extends a formula with predictors


Description

Extends a formula with predictors

Usage

extend.formula(
  formula = ~0,
  predictors = NULL,
  auxiliary = TRUE,
  include.intercept = FALSE,
  ...
)

Arguments

formula

A formula. If it is not a formula, the formula is internally reset to ~0.

predictors

A character vector of variable names.

auxiliary

A logical that indicates whether the variables listed in predictors should be added to the formula as main effects. The default is TRUE.

include.intercept

A logical that indicated whether the intercept should be included in the result.

Value

A formula


mice

Multivariate Imputation by Chained Equations

v3.13.0
GPL-2 | GPL-3
Authors
Stef van Buuren [aut, cre], Karin Groothuis-Oudshoorn [aut], Gerko Vink [ctb], Rianne Schouten [ctb], Alexander Robitzsch [ctb], Patrick Rockenschaub [ctb], Lisa Doove [ctb], Shahab Jolani [ctb], Margarita Moreno-Betancur [ctb], Ian White [ctb], Philipp Gaffert [ctb], Florian Meinfelder [ctb], Bernie Gray [ctb], Vincent Arel-Bundock [ctb]
Initial release
2021-01-26

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.