Hello Statalist,
Let me preface with the fact that I am new to statistical coding, but as the heading shows I am having difficulty running a proper univariate logistic regression on a 1:1 matched sample using psmatch2 on Stata 17. I understand this may be slightly unorthodox but the main goal is to obtain an odds ratio for my outcome of interest. That being said my current match code reads as such:
After the match I attempted to run the regression using the code:
as I thought that simply using the observations that are on the common support of the match would give the match sample and suffice. However, I have found in my searches (https://www.statalist.org/forums/for...opensity-score) that the following codes:
or
may be the more proper way to run this code. So, now I am a bit confused on what exactly the variable_support and _weight are giving and why is running the logistic regression on weight the proper way to do so?
Thanks!
Let me preface with the fact that I am new to statistical coding, but as the heading shows I am having difficulty running a proper univariate logistic regression on a 1:1 matched sample using psmatch2 on Stata 17. I understand this may be slightly unorthodox but the main goal is to obtain an odds ratio for my outcome of interest. That being said my current match code reads as such:
Code:
psmatch2 treatment covariate1 covariate#, out(outcome variable) caliper(0.01) noreplacement descending logit ate index
Code:
logistic outcome treatment if _support==1
Code:
outcome treatment [pw =_weight]
Code:
logistic outcome treatment if _weight==1
Thanks!
Comment