powered by
Compact print method for objects of class "marginal_effects": one line per predictor with the AME on the probability scale.
"marginal_effects"
# S3 method for marginal_effects print(x, digits = 3, ...)
Invisibly returns the input object x.
x
An object of class "marginal_effects" returned by marginal_effects.
marginal_effects
Number of decimal places (default: 3).
Additional arguments (not used).
survey_data$high_satisfaction <- as.integer(survey_data$life_satisfaction >= 4) model <- logistic_regression(survey_data, high_satisfaction ~ age + income) marginal_effects(model)
Run the code above in your browser using DataLab