I am trying to label each of the three columns here, but I only get the table "Model 1" for all three using STATA 18.0. As well I do not see any * (stars) for significance.
input bike car treatment
17 1 1
18 1 1
17 1 1
17 1 1
18 1 1
17 1 1
3 2 0
2 2 0
1 2 0
1 2 0
end
eststo model1: estpost tabstat bike car if (treatment == 1), stat(mean sd) columns(statistics)
eststo model2: estpost tabstat bike car if (treatment == 0), stat(mean sd) columns(statistics)
eststo model3: estpost tabstat bike car, stat(mean sd) columns(statistics)
esttab model1 model2 model3, replace ///
main(mean %9.3f star) aux(sd %9.3f) ///
unstack noobs nonumbers star(* 0.40 ** 0.05 *** 0.01) stats(N, fmt(a) label("Number of Observations")) ///
collabels("Model 1" "Model 2" "Model 3") varlabels()
input bike car treatment
17 1 1
18 1 1
17 1 1
17 1 1
18 1 1
17 1 1
3 2 0
2 2 0
1 2 0
1 2 0
end
eststo model1: estpost tabstat bike car if (treatment == 1), stat(mean sd) columns(statistics)
eststo model2: estpost tabstat bike car if (treatment == 0), stat(mean sd) columns(statistics)
eststo model3: estpost tabstat bike car, stat(mean sd) columns(statistics)
esttab model1 model2 model3, replace ///
main(mean %9.3f star) aux(sd %9.3f) ///
unstack noobs nonumbers star(* 0.40 ** 0.05 *** 0.01) stats(N, fmt(a) label("Number of Observations")) ///
collabels("Model 1" "Model 2" "Model 3") varlabels()
Comment