Hello,
I'm doing a ttest and exporting the results as follows:
I also want to include columns showing the number of observations for each of the variables according to the grouping variable. How can I do that?
I'm doing a ttest and exporting the results as follows:
Code:
ttest female hhsize housing toilet if sector==2, by(fuel)
cells("b(pattern(1 1 0) fmt(3) label(Mean)) b(pattern(0 0 1) fmt(3) label(Diff.) star)") ///
title("T-test of comparisons of means") nonum mlab("Solid fuel" "Clean fuel" "Difference") ///
statrlevels(* 0.1 ** 0.05 *** 0.01)

Comment