Expand description
DML models with linear scores: Plr, Irm, Pliv, and the
LinearScoreModel trait for adding your own.
Structs§
- Apo
- Average potential outcome
E[Y(d)]of one treatment leveld. - Apos
- Average potential outcomes of several treatment levels, fitted on shared sample splits so that they (and their contrasts) have joint inference.
- AposFit
- Fitted
Apos: the average potential outcome of every level, with joint inference, and contrasts between levels. - Cate
Signal - Ingredients for best-linear-predictor inference on effect heterogeneity
(
DmlFit::cate,DmlFit::gate): the BLP regressessignal − θ·theta_factoron the basis, with every row of the basis multiplied bybasis_scaleif given (partially linear models, where the signal is the outcome residual and the scale the treatment residual). - Did
- Difference-in-differences with panel data (two periods):
ymust be the outcome changeY₁ − Y₀.ml_glearnsE[ΔY | D = d, X]per group,ml_mthe propensityP(D = 1 | X)(observational score only). - DidCs
- Difference-in-differences with repeated cross-sections: the data need
a 0/1 time indicator (
DmlData::with_time_indicator).ml_glearnsE[Y | D = d, T = t, X]separately in each of the four group × period cells,ml_mthe propensityP(D = 1 | X)(observational score only). - Iivm
- IIVM estimator of the LATE:
ml_glearnsE[Y | Z, X](fitted separately on theZ = 0andZ = 1rows),ml_mthe instrument propensityP(Z = 1 | X), andml_rthe treatment probabilityP(D = 1 | Z, X)(again per instrument arm). - Irm
- IRM estimator:
ml_glearnsE[Y | D = d, X](fitted separately on the treated and control rows of each training fold),ml_mlearns the propensity scoreP(D = 1 | X). - Nuisance
Target - The target a nuisance learner predicts;
NaNmarks rows where the nuisance does not apply (e.g.g₀on treated rows). - Pliv
- PLIV estimator with the partialling-out score
ψ = (Y − ℓ(X) − θ(D − r(X)))·(Z − m(X)). - Plr
- PLR estimator:
ml_llearnsE[Y | X],ml_mlearnsE[D | X], and the optionalml_glearnsg(X)for the IV-type score. - Score
Estimate - Score elements plus the cross-fitted nuisance predictions behind them.
- Score
Input - The data a model sees when estimating the effect of one treatment.
Enums§
- DidScore
- Assignment mechanism assumed by
Did/DidCs. - IrmScore
- Target parameter of
Irm. - Loss
Kind - Loss used to evaluate a nuisance learner out of sample.
- PlrScore
- Orthogonal score used by
Plr.
Traits§
- Linear
Score Model - A DML model whose orthogonal score is linear in θ.