Repository navigation
Conversation
basic support for cluster bootstrap in `fit`
|
sorry, I missed this |
| from statsmodels.tools.typing import Float64Array | ||
| from statsmodels.tools.validation import bool_like, float_like, string_like | ||
|
|
||
| from wildboottest.wildboottest import wildboottest |
There was a problem hiding this comment.
what is wildboottest?
is this a package or module?
can we include it in statsmodels.
There was a problem hiding this comment.
wildboottest is a package that implements the wild cluster bootstrap.
I'll let @s3alfisc comment as well, but I think we'd like to keep the package separate, as there are more features to add, and we want to ultimately make a PR for linearmodels as well.
No worries, I hope you had a good new year! |
|
I guess test runs failed with unavailable import. azure test run is not available (anymore) |
|
question in terms of design If |
|
|
|
Hi @josef-pkt , a few quick comments (I am traveling and will reply more exhaustively once back):
Best, Alex |
|
Hi @josef-pkt, @amichuda and I had a brief catch up about integrating wildboottest as a module into statsmodels, and if you'd be interested, we would love to do so! In this case, I would suggest to add the wildboottest currently allows to compute percentile-t p-values via wild bootstraps (both clustered and non-clustered), mostly following algorithms in MacKinnon, Nielsen and Webb (2022). Allowing to compute confidence intervals by test inversion and affine hypotheses & Wald tests are the next thing on the to do list. In the long-term, I would further like to add support for bootstrap based multiple testing corrections, as the ones by Romano and Wolf and Westfall and Young. I'd suggest the following steps for this PR:
Based on your preferences, we could split steps into multiple separate PRs, @josef-pkt . |
This PR adds wild cluster bootstrapping as a
cov_typeinto OLS based on the packagewildboottest.This PR includes all functionality built into OLS with
cov_typeandcov_params.I added a test in
statsmodels/regression/tests/test_robustcov.pyand updated the docstring inlinear_model.py.A few caveats:
summaryonly includes t-stats and p-values for now.CheckOLSRobustClusterandCheckOLSRobustNewMixinand so tests fail for those reasons as well.