← All documentation

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

Column

Binary treatment indicator identifying treatment assignment.

Input
Required
Starting value
Depends on the uploaded columns; review the selection.

Predictors

Multiple columns

Select up to 15 explanatory variables. Exclude the outcome; Cox models also exclude survival time. Unmarked predictors must be numeric.

Input
Required
Starting value
Depends on the uploaded columns; review the selection.

Categorical variables

Multiple columns

Mark categorical matching predictors explicitly, including numeric category codes. These values are treated as categories; unmarked predictors must be numeric.

Input
Optional / conditional
Starting value
Depends on the uploaded columns; review the selection.

Treated value

Text

Exact treated-group value, such as 1. The other value is the control group; spelling and case must match.

Input
Required
Starting value
1

Method

Choice

nearest, 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
Input
Required
Starting value
nearest

Estimand

Choice

ATT 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
Input
Required
Starting value
ATT

Distance

Choice

glm 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
Input
Required
Starting value
glm

Ratio

Integer

Requested ratio from 1 to 5 for nearest and optimal only. Ignored by full, exact and subclass.

Input
Required
Starting value
1
Allowed range
≥ 1; ≤ 5

Replace

Checkbox

Allow control reuse in nearest matching. Ignored by other methods.

Input
Optional / conditional
Starting value
Unchecked

Caliper

Number

Optional 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.

Input
Optional / conditional
Starting value
0.2
Allowed range
≥ 0

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.

Propensity score matching — bundled example settings
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.