Description Usage Arguments Value
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.
1 2 3 4 5 | calculate.predictor.value.from.regression.model(
model,
constant.values.list,
predict.var = NULL
)
|
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) |
A scatter ggplot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.