Propensity score matching
Match participants using estimated propensity scores to balance measured baseline covariates.
Data requirements
Use a binary treatment column and measured baseline predictors. Matching requires 6–1,000 complete rows after excluding missing treatment or predictor values.
Upload UTF-8 CSV or TSV with unique column names in the first row. Blank, NA, N/A, NaN and NULL entries are treated as missing. Files support up to 2 MiB, 10,000 rows, 60 columns and 200,000 cells; module-specific limits also apply.
Parameters
Names match the analysis form. Starting values describe a newly loaded form; column selections depend on your uploaded data. Matching example column names may be preselected. Review every selection before running.
“Optional / conditional” fields may be required by a particular mode or method. The explanation states when each field takes effect. Hold Ctrl / Command to select multiple columns.
Treatment indicator
ColumnBinary treatment indicator identifying treatment assignment.
Predictors
Multiple columnsSelect up to 15 explanatory variables. Exclude the outcome; Cox models also exclude survival time. Unmarked predictors must be numeric.
Categorical variables
Multiple columnsMark categorical matching predictors explicitly, including numeric category codes. These values are treated as categories; unmarked predictors must be numeric.
Treated value
TextExact treated-group value, such as 1. The other value is the control group; spelling and case must match.
Method
Choicenearest, optimal, full, exact and subclass select the matching or subclassification strategy. Options below are passed only when applicable.
- nearest
-
nearest - optimal
-
optimal - full
-
full - exact
-
exact - subclass
-
subclass
Estimand
ChoiceATT targets treated participants, ATC controls and ATE the combined population. nearest and optimal accept ATT or ATC; the form rejects ATE for these methods. Choose full for the supported ATE workflow.
- ATT
-
ATT - ATC
-
ATC - ATE
-
ATE
Distance
Choiceglm estimates logistic propensity scores; mahalanobis requests covariate distance for nearest, optimal or full matching. subclass requires glm; distance is ignored for exact matching.
- glm
-
glm - mahalanobis
-
mahalanobis
Ratio
IntegerRequested ratio from 1 to 5 for nearest and optimal only. Ignored by full, exact and subclass.
Replace
CheckboxAllow control reuse in nearest matching. Ignored by other methods.
Caliper
NumberOptional standardized propensity-score distance restriction for nearest and full with glm. A positive value enables it; blank or 0 disables it. Hidden and ignored for Mahalanobis distance and other methods.
Example settings
Load the bundled example in the analysis workspace, or upload the example CSV linked above, then use these settings. These are illustrative choices for the synthetic data.
| Parameter | Setting |
|---|---|
| Treatment indicator | binary |
| Predictors | x, z |
| Categorical variables | Blank |
| Treated value | 1 |
| Method | nearest |
| Estimand | ATT |
| Distance | glm |
| Ratio | 1 |
| Replace | Unchecked |
| Caliper | 0.2 |
Results
Inspect the matched-dataset and balance tables. Matching weights and available matching metadata are included in the dataset export. New matching columns automatically avoid existing column names; the actual names are recorded in result notes. Additional downloadable analysis-summary and diagnostics tables describe the analysis scope and method checks. Selected-variable missingness is reported where applicable. Diagnostics do not establish external validity or verify untested assumptions.
Review the reported method, observation count and notes alongside the estimates. Result tables can be downloaded as CSV and the figure as PNG.
Notes & limitations
- Assess balance and overlap after matching. Matching alone does not estimate a treatment effect or eliminate unmeasured confounding.
- Downstream inference must account for matching weights and the matching design. Revise method/distance combinations if the selected matching routine rejects them.