Dear Statalisters,
Here is a demonstration of my data:
I want to save two sub datasets for treated=0 and 1 separately.
My question is if I should use preserve , then restore ,
I think the code needs to be modified.
Best,
Rochelle
Here is a demonstration of my data:
Code:
clear input byte(treated strat_pre) 0 18 0 19 0 15 0 19 1 21 1 22 1 21 1 24 end
My question is if I should use preserve , then restore ,
Code:
tempfile treat keep if treated==1 save `treat' tempfile treat keep if treated==0 save `control'
Best,
Rochelle
Comment