Description Usage Arguments Examples
View source: R/create_predictions.R
This function returns a data frame of predictions using simulated data. This result only works on OLS or logit models.
1 | create_predictions(model, dataset, ..., model_type = "ols")
|
model |
The model used to create the predictiosn |
dataset |
The underlying dataset that is used to create the underlying values of the predictor variable |
... |
List of predictor variables that are being varied. All other variables are set to 'typical' values |
model_type |
Specifies whether you have an 'ols' or 'logit' model |
1 2 3 | model <- lm(mpg ~ ., data = mtcars)
create_predictions(model, mtcars, cyl, wt)
create_predictions(model, mtcars, gear)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.