Skip to contents

Generic function for finding which coefficients go with which predictors

Usage

getCoefsFromPredictors(model, predictors, ...)

# S3 method for default
getCoefsFromPredictors(model, predictors = NULL, strict = FALSE, ...)

getCoefsFromPredictorsRevo(model, predictors = NULL, strict = FALSE, ...)

# S3 method for rxLinMod
getCoefsFromPredictors(model, predictors = NULL, strict = FALSE, ...)

# S3 method for rxLogit
getCoefsFromPredictors(model, predictors = NULL, strict = FALSE, ...)

# S3 method for rxGlm
getCoefsFromPredictors(model, predictors = NULL, strict = FALSE, ...)

Arguments

model

A fitted model

predictors

A character vector of predictors to match against

...

further arguments

strict

Logical specifying if interactions terms should be included (FALSE) or just the main terms (TRUE).

Value

A character vector of coefficients listing the coefficients that match the predictor

Details

The user specifies predictors whose coefficients should be included in the coefplot.

Author

Jared P. Lander