-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switch to avg slope reporting in modelsummary vignette #809
Comments
I would call these group contrasts "counterfactual comparisons." For example,
So each contrast actually uses all 32 observations, which makes me feel like the "Num.Obs." row makes sense. If you want to compute differences between subgroup average predictions, I'd do something like: avg_predictions(mod, by = "gear", hypothesis = ~ sequential) |
(Ugh, I just realised that I raised this in the wrong repo; should be in Cool, cool. Happy to close, but I will just say that reporting grouped avg_slopes/comparisons is one of the canonical use-cases of |
Minor issue, but I think the group contrast examples starting here are potentially confusing, since the tables are simply reporting the number of observations in each group rather than the slopes coefficients, which are almost certainly going to be of more interest for tabling output.
Maybe switch to
avg_comparisons
?Created on 2024-09-05 with reprex v2.1.1
The text was updated successfully, but these errors were encountered: