filter_models: Extract models with selected outcomes, exposures, and...

Description Usage Arguments Value

Description

Extract models with selected outcomes, exposures, and adjustments.

Usage

1
2
filter_models(models, outcomes = NULL, exposures = NULL,
  adjustments = NULL, drop = FALSE, combine = NULL)

Arguments

models

List of models

outcomes

Character vector with names of outcome variables

exposures

Character vector with names of exposure variables

adjustments

List of character vectors with names of adjustment variables

drop

Drop matching models if TRUE (default FALSE)

combine

If "and" models must match all of 'outcomes', 'exposures', and 'adjustments'. If "or" (default) a single match suffices.

Value

A list of models whose outcome, exposure, and adjustment match match 'outcomes', 'exposures', and 'adjustments'. The exact nature of the match depends on the values of 'drop' and 'combine'.


cbaumbach/manyregs documentation built on May 13, 2019, 1:48 p.m.