Learn R Programming

mariposa (version 0.7.3)

summary.logistic_regression: Summary method for logistic regression results

Description

Creates a summary object that produces detailed output when printed, including omnibus test, model summary, Hosmer-Lemeshow test, classification table, and coefficient table.

Usage

# S3 method for logistic_regression
summary(
  object,
  omnibus_test = TRUE,
  model_summary = TRUE,
  hosmer_lemeshow = TRUE,
  classification = TRUE,
  coefficients = TRUE,
  digits = 3,
  ...
)

Value

A summary.logistic_regression object.

Arguments

object

A logistic_regression result object.

omnibus_test

Logical. Show omnibus test of model coefficients? (Default: TRUE)

model_summary

Logical. Show model summary (pseudo R-squared)? (Default: TRUE)

hosmer_lemeshow

Logical. Show Hosmer-Lemeshow test? (Default: TRUE)

classification

Logical. Show classification table? (Default: TRUE)

coefficients

Logical. Show coefficients table? (Default: TRUE)

digits

Number of decimal places for formatting (Default: 3).

...

Additional arguments (not used).

See Also

logistic_regression for the main analysis function.

Examples

Run this code
survey_data$high_satisfaction <- ifelse(survey_data$life_satisfaction >= 4, 1, 0)
result <- logistic_regression(survey_data, high_satisfaction ~ age + income)
summary(result)
summary(result, classification = FALSE)

Run the code above in your browser using DataLab