View source: R/mlr_interpret.R
| mlr_interpret | R Documentation |
Multiple Linear Regression with Plain-English Interpretation
mlr_interpret(formula, data, conf.level = 0.95)
formula |
A formula of the form outcome ~ predictor1 + predictor2 + ... |
data |
A data frame containing the variables |
conf.level |
Confidence level. Default 0.95. |
An object of class statease_mlr containing multiple
regression results and interpretation. Use print() to
display the formatted report.
df <- data.frame(
exam_score = c(23,45,12,67,34,89,56,43,78,90),
study_hours = c(2,5,1,7,3,9,6,4,8,10),
attendance = c(60,80,50,90,70,95,85,75,88,92)
)
result <- mlr_interpret(exam_score ~ study_hours + attendance, data = df)
print(result)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.