Repository navigation
Bootstrapping for estimate_slopes()?
#610
Replies: 2 comments
|
Right, For the full bootstrap (refit per resample, percentile CI) I'd call marginaleffects directly, as in your snippet. To stay in modelbased, estimate_slopes(model, slope = "x", vcov = sandwich::vcovBS(model, R = 999))That's bootstrap SEs pushed through the delta method, so a symmetric Wald CI rather than a percentile one. On a simulated logistic model the 95% CIs were [0.142, 0.217] by default, [0.145, 0.217] with |
|
We could make an issue of this discussion and possibly implement that feature. Wouldn't be too difficult to internally add a call to |
Uh oh!
There was an error while loading. Please reload this page.
Hi all,
I'd like to compute bootstrap average marginal effects, essentially an equivalent of:
However, it seems that
estimate_slopes()doesn't seem to support bootstrapping, unlikeestimate_expectations()and others. Is that correct or am I just missing something? Thanks in advance!All reactions