Learn R Programming

mariposa (version 0.7.3)

print.logistic_regression: Print logistic regression results (compact)

Description

Compact print method for objects of class "logistic_regression". Shows Nagelkerke R-squared, chi-squared test, and classification accuracy.

For the full detailed output, use summary().

Usage

# S3 method for logistic_regression
print(x, ...)

Value

Invisibly returns the input object x.

Arguments

x

An object of class "logistic_regression" returned by logistic_regression.

...

Additional arguments (not used).

Examples

Run this code
survey_data$high_satisfaction <- as.integer(survey_data$life_satisfaction > 3)
result <- logistic_regression(survey_data, high_satisfaction ~ age + income)
result              # compact one-line overview
summary(result)     # full detailed output

Run the code above in your browser using DataLab