I am stuck with the following syntax problem involving eststo (Stata version 13).
I have restricted my analysis to a subgroup of my dataset.
generate subsample1=0
replace subsample1=1 if [(cs_rb010==2009 & L.rb210==1 & L.UnmetNeed==0) | (cs_rb010==2010 & L.rb210==1 & L.UnmetNeed==0)]
Now I want to run the models I created and then bring them together in a table. To that end I used eststo. Now the problem is that Stata won´t let me use the "if " command (I've tried all possible combinations and it is definitely the "if" that is messing it up. Please see below.
ssc install estout, replace
eststo clear
xtset pid cs_rb010
eststo: xi: logit UnmetNeed i.Employment age ageSq i.Education i.MaritalStatus i.cs_rb020 if subsample1=1, or
eststo: xi: logit UnmetNeed i.Employment age ageSq i.Education i.MaritalStatus iL.SelfRatedHealth i.cs_rb020 if subsample1=1, or
eststo: xi: logit UnmetNeed i.Employment age ageSq i.Education i.MaritalStatus iL.SelfRatedHealth i.MakeEndsMeet i.cs_rb020 if subsample1=1, or
esttab
esttab using "C:\Users\Joana\Documents\MPhil\SILC Datasets\Results", ci(a2) r2(a2) l nodep replace b(a2) star(* 0.05 ** 0.01) onecell
eststo clear
How can I run these models and still be able to append them using eststo?
Aucun commentaire:
Enregistrer un commentaire