The PSMATCH Procedure

PSDATA Statement

  • PSDATA TREATVAR=treatvar <(TREATED='level' | keyword)> ps-option;

You use the PSDATA statement when the DATA= data set contains precomputed propensity scores or logits of propensity scores and you want to base the propensity score analysis on these scores rather than using the PSMODEL statement to specify a logistic regression model for computing the scores. The PSDATA statement specifies the variable in the DATA= data set that is the treatment indicator variable and a variable that contains the propensity scores or logits of the propensity scores. If you omit the EWEIGHT statement, you must specify either the PSMODEL or PSDATA statement, but not both.

You must specify the following TREATVAR= option:

TREATVAR=treatvar <(TREATED='level' | keyword)>

names the treatment indicator variable, treatvar, which must be a binary classification variable that you specify in the CLASS statement.

The TREATED= suboption specifies the treated level for the binary treatment variable. You can specify the value of the treated level in quotation marks, or you can specify one of the following keywords:

FIRST

designates the first ordered level as the treated group.

LAST

designates the last ordered level as the treated group.

By default, TREATED=FIRST.

You must also specify one (and only one) of the following ps-options:

PS=name

names the variable that contains propensity scores, where the variable name must be a variable in the DATA= data set.

LPS=name

names the variable that contains logits of propensity scores, where the variable name must be a variable in the DATA= data set.

Last updated: December 09, 2022