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. - AutoDml
- Auto-DML estimator of
θ = E[m(W; γ)]. - 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). - Cvar
- Conditional value at risk of the potential outcome,
E[Y(d) | Y(d) ≥ q_τ(Y(d))], as DoubleML’sDoubleMLCVAR.ml_gis a regressor,ml_ma classifier forP(D = 1 | X). The score is linear. - 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). - External
Predictions - Out-of-fold nuisance predictions supplied by the user, as DoubleML’s
external_predictions: per treatment and learner name (e.g."ml_l","ml_m"), one column per sample-splitting repetition. Learners with external predictions are not fitted, and have no out-of-sample loss. - 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). - Lplr
- Logistic partially linear regression for a binary outcome,
P(Y = 1 | D, X) = expit(θ·D + r(X)), as DoubleML’sDoubleMLLPLR; θ is a log odds ratio. - Lpq
- Local potential quantile of compliers, with a binary instrument, as
DoubleML’s
DoubleMLLPQ.ml_gis a classifier forP(1{D = d}·1{Y ≤ θ̃} = 1 | Z = z, X),ml_ma classifier used for the instrument propensityP(Z = 1 | X)and forP(D = 1 | Z = z, X). Default sample splits are stratified by treatment and instrument. - Nuisance
Learners - Learners for individual nuisance functions that replace a model’s default
learner for them, e.g. different settings for
ml_g0andml_g1inIrm(DoubleML’s per-nuisance parameters,set_ml_nuisance_params). Set through the models’nuisance_regressor/nuisance_classifier. - Nuisance
Target - The target a nuisance learner predicts;
NaNmarks rows where the nuisance does not apply (e.g.g₀on treated rows). - Pliv
- Partially linear IV regression. See
PlivVariantandPlivScore. - Plpr
- Partially linear regression on a transformed static panel, with folds and
standard errors clustered by unit. See
PanelApproachfor the transformations andPlrScorefor the scores. - Plr
- PLR estimator:
ml_llearnsE[Y | X],ml_mlearnsE[D | X], and the optionalml_glearnsg(X)for the IV-type score. - Pq
- Potential quantile
θwithP(Y(d) ≤ θ) = τ, as DoubleML’sDoubleMLPQ. - Qte
- Treatment effects on quantiles (or CVaRs), as DoubleML’s
DoubleMLQTE: for everyτ, the potential quantiles of treatment 1 and 0 are fitted on the same sample splits and their difference is the effect, with joint inference across all quantiles. - QteFit
- Fitted
Qte. - RdFlex
- RD with flexible covariate adjustment. A fuzzy design (
RdFlex::fuzzy) also adjusts the treatment with a classifier. - RdFlex
Fit - Fitted
RdFlex: the conventional, bias-corrected and robust RD estimates (rows), aggregated over repetitions as DoubleML. - 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.
- Ssm
- Average treatment effect of a binary treatment when the outcome is
observed only where the selection indicator
Sis 1 (attrition, non-response), as DoubleML’sDoubleMLSSM. Requires a selection indicator (DmlData::with_selection_indicator) and, forSsmScore::Nonignorable, an instrument for selection (DmlData::with_instrument). - Static
Panel - A static panel in long format: one row per unit
idand periodt.
Enums§
- DidScore
- Assignment mechanism assumed by
Did/DidCs. - First
Stage - Regressors of the first stage besides the covariates.
- IrmScore
- Target parameter of
Irm. - Loss
Kind - Loss used to evaluate a nuisance learner out of sample.
- Lplr
Score - Score of
Lplr. - Panel
Approach - How
Plprhandles the unit effects. - Pliv
Score - Score of
Pliv. - Pliv
Variant - What
Plivpartials out. - PlrScore
- Orthogonal score used by
Plr. - RdKernel
- Kernel of the first-stage weights.
- SsmScore
- Selection mechanism of
Ssm. - Treatment
Learner - A learner for
E[D | X]: a regressor, or for a binary treatment a classifier whose class-1 probability is used.
Traits§
- Linear
Score Model - A DML model whose orthogonal score is linear in θ.
Type Aliases§
- Name
- Name of a nuisance learner: a
&'static strliteral or an ownedString(Cowholds either without copying literals).