Learn R Programming

mariposa (version 0.7.3)

print.summary.logistic_regression: Print summary of logistic regression results (detailed output)

Description

Displays the detailed SPSS-style output for a logistic regression, with sections controlled by the boolean parameters passed to summary.logistic_regression. Sections include the omnibus test of model coefficients, model fit statistics (Nagelkerke R-squared, Hosmer-Lemeshow), classification table, and coefficients with odds ratios.

Usage

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

Value

Invisibly returns the input object x.

Arguments

x

A summary.logistic_regression object created by summary.logistic_regression.

...

Additional arguments (not used).

See Also

logistic_regression for the main analysis, summary.logistic_regression for summary options.

Examples

Run this code
survey_data$high_satisfaction <- as.integer(survey_data$life_satisfaction > 3)
result <- logistic_regression(survey_data, high_satisfaction ~ age + income)
summary(result)                         # all sections
summary(result, classification = FALSE) # hide classification table

Run the code above in your browser using DataLab