predict_dep_var | R Documentation |
Prediction from new observations
predict_dep_var(model, new_data, level = 0.95)
model |
an lm object |
new_data |
data frame containing the new set of predictors |
level |
confidence level, default 0.95 |
A tibble containing the predicted value and the upper and lower CI
Mutua Kilai
model <- lm(pi ~ hs + ps, data = eduperform)
newdata <- data.frame(hs =c(2,3,4),ps = c(23,24,12))
predict_dep_var(model, new_data = newdata, level = 0.95)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.