create_predictions: Creating predictions using simulated data

Description Usage Arguments Examples

View source: R/create_predictions.R

Description

This function returns a data frame of predictions using simulated data. This result only works on OLS or logit models.

Usage

1
create_predictions(model, dataset, ..., model_type = "ols")

Arguments

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

Examples

1
2
3
model <- lm(mpg ~ ., data = mtcars)
create_predictions(model, mtcars, cyl, wt)
create_predictions(model, mtcars, gear)

rgardiner90/researchr documentation built on Nov. 5, 2019, 3:07 a.m.