Function reference
Unconfounded Estimators
Quantile treatment effect estimators under unconfoundedness (qte.unconfounded).
| estimate_unadjusted_effects | Estimate a quantile treatment effect by the unadjusted difference in quantiles. |
| estimate_ipw_effects | Estimate a quantile treatment effect by inverse probability weighting. |
| estimate_outcome_regression_effects | Estimate a quantile treatment effect by outcome regression. |
| estimate_aipw_effects | Estimate a quantile treatment effect by augmented inverse probability weighting. |
| QteResult | Result of a unconfounded quantile treatment effect estimation. |
| CausalTarget | Causal estimand a unconfounded estimator targets. |
| Estimator | Unconfounded estimator that produced a result. |
| OutcomeRegressionConfig | Configuration of the outcome (quantile) regression step. |
Simulation
Simulation functions for the unconfounded estimators (qte.unconfounded.simulate).
| simulate_simple_data | Simulate a randomised experiment without covariates. |
| simulate_covariate_data | Simulate the fixed observational setting with covariates. |
| get_true_quantiles | Simulation-based potential-outcome quantiles and the quantile effect. |
| get_true_means | Simulation-based potential-outcome means and the average effect. |
Instrumental Variables
Local quantile treatment effects for compliers (qte.iv).
| estimate_unconditional_local_effects | Estimate the local quantile treatment effect for compliers. |
| UnconditionalLocalQteResult | Result of a local quantile treatment effect estimation. |
| estimate_conditional_local_effects | Estimate conditional quantile treatment effects for compliers as in Abadie et al. (2002). |
| ConditionalLocalQteResult | Result of a conditional local quantile treatment effect estimation. |
| estimate_ivqr_effects | Estimate an instrumental-variable quantile regression. |
| IvqrTreatment | An endogenous treatment and the grid for its structural coefficient. |
| IvqrResult | Result of an instrumental-variable quantile regression. |
| InstrumentProbabilityResult | Coefficient estimates from the logit model for the instrument probability. |
| perform_instrument_validity_test | Test instrument validity with the Kitagawa (2015) test. |
| InstrumentValidityResult | Result of the Kitagawa (2015) instrument-validity test. |
| ValidityWeighting | Weighting of the Kitagawa instrument-validity test statistic. |
| Estimator | Weighting scheme for the complier quantile treatment effect. |
| WeightAdjustment | How the nonnegative complier weights are formed. |
IV Simulation
Simulation functions for the instrumental-variables estimator (qte.iv.simulate).
| simulate_data | Simulate a binary-instrument, binary-treatment design with non-compliance. |
| get_true_local_effects | Simulation-based true complier quantile and average effects. |
Regression Discontinuity
Local quantile treatment effects for compliers in regression-discontinuity designs (qte.rdd).
| estimate_rdd_distribution_effects | Estimate local quantile treatment effects by local distribution regression. |
| RddDistributionResult | Result of a local distribution-regression RD estimation. |
| RunningVariableConfig | Running variable and the cutoff at which treatment status jumps. |
| LocalPolynomialConfig | Local-polynomial smoothing settings. |
| RddInference | Inference method for the RDD distribution estimator. |
| Kernel | Kernel used to weight observations around the cutoff. |
| plot_rdd_design | Plot the outcome against the running variable around the cutoff. |
| plot_rdd_treatment | Plot the treatment probability against the running variable. |
RDD Simulation
Simulation functions for the regression-discontinuity estimator (qte.rdd.simulate).
| simulate_rdd_data | Simulate a fuzzy RD design with heterogeneous quantile effects. |
| get_true_local_effects | Compute the complier quantile effects and LATE of the simulated design. |
| get_true_first_stage | Return the population share of local compliers. |
Distributional Difference-in-Differences
Changes-in-changes and quantile difference-in-differences estimators for panel data (qte.distributional_did).
| estimate_changes_in_changes_effects | Estimate quantile treatment effects with changes-in-changes. |
| estimate_quantile_did_effects | Estimate quantile treatment effects with quantile difference-in-differences. |
| estimate_mean_did_effects | Estimate treatment effects with mean difference-in-differences. |
| estimate_distributional_did_effects | Estimate quantile treatment effects with distributional difference-in-differences. |
| DistributionalDidResults | The four aggregations returned by estimate_changes_in_changes_effects or estimate_quantile_did_effects. |
| DistributionalDidResult | Result for one aggregation of a distributional difference-in-differences estimation. |
| TrtGroupConfig | Lazy configuration for the treatment group column. |
| Estimator | Estimator that produced a result. |
| SamplingScheme | Sampling scheme of the input data. |
| ControlGroup | Comparison group used for the counterfactual. |
| BasePeriod | Pre-treatment period the post-treatment effect is compared to. |
Data
Datasets bundled with py-qte (qte.datasets).
| load_lalonde | Load the LaLonde (1986) job training dataset. |
| load_mpdta | Load the minimum wage panel dataset (mpdta). |
| load_engel_with_weights | Load Engel (1857) food expenditure data with a sampling weights column. |
| load_card | Load the Card (1995) college-proximity dataset. |
| load_jtpa | Load the JTPA job-training data used in Abadie, Angrist & Imbens (2002). |
| load_pension | Load the 401(k) pension data of Chernozhukov and Hansen (2004). |
| load_ddk_2011 | Load the Duflo, Dupas and Kremer (2011) tracking dataset. |
Bootstrap
Shared bootstrap configuration for the estimators (qte.bootstrap).
| BootstrapConfig | Configuration for the bootstrap. |
| BootstrapMultiplierConfig | Configuration for multiplier-bootstrap inference. |
Quantile Regression
Quantile regression solver and algorithm selection (qte.quantile_regression).
| QuantileRegressionAlgorithms | Algorithm used to fit the quantile regression coefficient process. |