View source: R/logistic_interpret.R
| logistic_interpret | R Documentation |
Logistic Regression with Plain-English Interpretation
logistic_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_logistic containing logistic
regression results and interpretation. Use print() to
display the formatted report.
df <- data.frame(
passed = c(1,1,0,1,0,1,1,0,1,1,0,0,1,1,0),
study_hours = c(9,8,3,7,2,9,8,3,7,6,2,1,8,7,3),
attendance = c(90,85,50,80,45,95,88,55,78,70,40,35,92,83,52)
)
result <- logistic_interpret(passed ~ 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.