Dear all, I'm trying to do PSM matching with pscore. I have data about 1 million firms needed for propensity score matching. These firms are in 36 industries. I want to match control group by industry. My code is as follows: use firms.dta global vars lnl lntfp export valueadd forvalues i=1(1)36{ qui pscore treat $Vars if industry==`i', pscore(mypscore) blockid(myblock) logit } Then there comes error messege: "mypscore already defined". I know that's because when industry equals 2, myscore already exist in the dataset . But I have no idea how to do the loop. Anyone could give me suggestions? Thanks a lot! Cheers Owen
-
Login or Register
- Log in with
Comment