View source: R/reg_interpret.R
| reg_interpret | R Documentation |
Simple Linear Regression with Plain-English Interpretation
reg_interpret(formula, data, conf.level = 0.95)
formula |
A formula of the form outcome ~ predictor |
data |
A data frame containing the variables |
conf.level |
Confidence level. Default 0.95. |
An object of class statease_reg containing 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)
)
result <- reg_interpret(exam_score ~ study_hours, data = df)
print(result)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.