# DR-TMLE with fold-wise reduced regressions This study measures the cross-fitted `DRTMLE` with `reduced_crossfit="foldwise"`, the shipped default. Under this setting, fold `k`'s reduced regressions train on slab `k`. A slab holds the production arrays at fold-`k` rows and leave-two-out arrays at the rows of each other fold. [Reduced-regression cross-fitting](../dr-tmle/targeting.md#reduced-regression-cross-fitting) defines the two settings and gives the argument for the foldwise construction. The registered DR-TMLE studies with an R comparator fit `reduced_crossfit="pooled"`. That is the `cvFolds` construction of R `drtmle`. In it, fold `k`'s data reach fold `k`'s reduced regressions through the designs of the other folds. This study gives the default its own evidence. It also measures that fold leak against the foldwise construction on the same draws. No canonical implementation is compared. R `drtmle` has no foldwise construction, so the study declares no reference and runs no R. A zero-row equivalence artifact records the absence. The study uses the `gated` policy. The study modules are `tests/studies/drtmle_foldwise.py` and `tests/studies/drtmle_foldwise_properties.py`. ## What was fitted | setting | value | | --- | --- | | law | the binary complete-data law of Benkeser et al. (2017), Section 5.1, as `canonical-drtmle` draws it | | nuisance regimes | `both_correct`, `outcome_correct` and `treatment_correct`. A misspecified model omits the `W1 W2` term | | learners | the `canonical-drtmle` GLMs: logistic GLMs for the outcome regression and the mechanism, a Gaussian GLM for `Q_r` and a binomial GLM for `g_r` | | construction | `cross_fit=True`, `n_folds=10`, `reduced_crossfit="foldwise"`, `reduction="univariate"`, `guard=("Q", "g")`, `update_order="drtmle"`, `max_outer=100` | | folds | the unstratified ten-fold vector of `canonical-drtmle`, drawn by `random_partition` from the sample seed | | draws | the seed and scenario order of `canonical-drtmle`. Replication `r < 800` of each scenario is that study's registered replication `r` | | intervals | pointwise 95% Wald from the influence curve | | primary budget | 6,000 replications at n = 3,000 for each regime | | failure bound | 0.01 of the replications of a cell. A fit that raises, a non-finite score audit and an active propensity bound each count as a failure | The design test, `tests/unit/test_drtmle_foldwise_study_design.py`, pins the shared draws, the cells and the budgets. ## The property cells Each cell fits the ATE. Each cell except `ate__pooled` uses the foldwise construction. Each `treatment_correct` variant changes one setting of the primary fit. | cell | role | n | R | what the cell changes | | --- | --- | --- | --- | --- | | `fold_locality/ate__foldwise` | positive | 1,000 | 4,400 | `treatment_correct` | | `fold_locality/ate__pooled` | control | 1,000 | 4,400 | the same draws, with `reduced_crossfit="pooled"` | | `double_robustness/ate__benkeser_order` | positive | 3,000 | 1,600 | `update_order="benkeser"` | | `double_robustness/ate__bivariate` | positive | 3,000 | 4,000 | `reduction="bivariate"` | | `double_robustness/ate__bivariate_oc` | positive | 3,000 | 1,600 | `reduction="bivariate"` under `outcome_correct` | | `double_robustness/ate__k5` | positive | 3,000 | 2,000 | `n_folds=5` | | `double_robustness/ate__spline_qr` | positive | 3,000 | 1,200 | cubic B-spline `Q_r` learner with 5 knots, canonical GLMs for `g_{r,1}` and `g_{r,2}` | | `double_robustness/ate__both_wrong` | control | 3,000 | 400 | both nuisances misspecified | | `double_robustness/multi_arm_drtmle__treatment_correct` | positive | 2,000 | 3,600 | the three-arm law of `canonical-multi-arm-drtmle`, five folds, on that study's registered draws | | `double_robustness/