Open s3alfisc opened 1 month ago
Many experimental designs rely on stratified sampling. Both the R and Stata ritest packages implement options for stratification.
ritest
strata
.ritest()
_resample
@s3alfisc I want to work on this
Great, I'll assign this to you then! Please let me know if I can help you in any way =)
Context
Many experimental designs rely on stratified sampling. Both the R and Stata
ritest
packages implement options for stratification.To do
strata
function argument to.ritest()
for stratified sampling._resample
function https://github.com/py-econometrics/pyfixest/blob/734a21c34a56a88ba12b0fa26cd3ed0e8c24bd51/pyfixest/estimation/ritest.py#L247 to allow for stratified sampling.ritest
by adding tests with stratification by adjusting https://github.com/py-econometrics/pyfixest/blob/734a21c34a56a88ba12b0fa26cd3ed0e8c24bd51/tests/r_test_comparisons.R#L13