Dear All,
I am using propensity score matching to match observations in current year with observations in prior year based on some characteristic variables. I searched online and found that there is a [in range] option for both pstest and psmatch2.
http://repec.org/bocode/p/psmatch2.html
http://fmwww.bc.edu/repec/bocode/p/pstest.html
But I could not find any examples using the [in range] option.
If I simply put a number to indicate the starting observation, such as
psmatch2 X1 X2 X3 in 1000, out(Y) common
X1 is the main explanatory variable, X2 and X3 are control variables, Y is the outcome variable
Stata shows "insufficient observations"
If I put two numbers or "-" between the numbers
psmatch2 X1 X2 X3 in 1000 2000, out(Y) common
Stata shows "invalid '2000' "
psmatch2 X1 X2 X3 in 1000-2000, out(Y) common
Stata shows "'1000-2000' invalid observation number"
Could anyone teach me how to correctly specify the range in propensity score matching? Many thanks!
Related Posts with Specify Range in Propensity Score Matching
To generate a new variable to subset a dataset based off number of visit a patient has attendedDear all, Patient number is a key identifier variable. For example Patients have come for 3 visits,…
count number of unique values over a rolling time window defined by a date variableDear Stata community, I'd like to generate a variable that records the number of unique values of a…
Heckprobit regression with dummy variablesI have done a heckprobit regression on a cross section data. My main explanatory variable is a distr…
IMPORTANT QUESTION: Remove firms if fiscal year-end changesGoodmorning, For my thesis it is very important to remove all firms in my compustat database for wh…
Fixed effects, robust standard errors and clustered standard errorsHi, I'm making a difference-in-differences analysis with multiple interaction terms for returns - t…
Subscribe to:
Post Comments (Atom)
0 Response to Specify Range in Propensity Score Matching
Post a Comment