calculate.predictor.value.from.regression.model: Takes a linear regression model and provided values of...

Description Usage Arguments Value

Description

Takes a linear regression model and provided values of predictors and outcome, and calculates a provided (or missing) predictor (or outcome). Probably doesn't work for models with interaction terms.

Usage

1
2
3
4
5
calculate.predictor.value.from.regression.model(
  model,
  constant.values.list,
  predict.var = NULL
)

Arguments

model

A lm generated model.

constant.values.list

List of provided values for outcome and predictors.

predict.var

Character name of the variable to predict. If NULL the function will look for a missing item in outcome.values in constant.values.list. If predict.var exists in constant.values.list, its value there will be ignored (Default : NULL)

Value

A scatter ggplot


mattmoo/SteppedWedgeAnalysis documentation built on Jan. 14, 2020, 12:25 a.m.