Provides the average marginal effects of a GLM model with bootstrapped confidence intervals. Similar results would be obtained from using margins::margins().
frames(model, ci_type ="perc", boot =100, ci =0.95)
Arguments
model: the model object
ci_type: the type of boostrapped confidence interval; options are "perc", "basic", "bca"
boot: the number of bootstrapped samples; default is 100
ci: the confidence interval; the default is .975 which is the 95% confidence interval.
Details
Using the average marginal effects as discussed by Tamas Bartus (2005), the coefficients are transformed into probabilities (for binary outcomes) or remain in their original units (continuous outcomes).
Examples
library(furniture)data(nhanes_2010)fit = glm(marijuana ~ home_meals + gender + age + asthma, data = nhanes_2010, family ="binomial")frames(fit)