Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: estout - esttab - producing different column labels in a single table


From   Marc Witte <marcjosefwitte@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: estout - esttab - producing different column labels in a single table
Date   Sun, 17 Jun 2012 20:09:16 +0200

Dear Statalist,

I am using the -esttab- function of -estout- to display the means and
standard deviations of six different models (treatment and control
group, each of them subdivided into a further treatment and control
group)  --- all of that in a single table.

In a seventh model within the same table, I want to display the test
statistic and p-value of a ttest between the total control group
[model (1)] and the total treatment group [model (4)].

Unfortunately, -esttab- labels the columns identically for each of the
seven models (in my case "Mean" and "SD"), whereas I want the columns
for the seventh model (the ttest comparison) to be named "t-value" and
"p-value".

Do you have ideas how to change the column labels exclusively for the
last model, i.e. model (7)?

This is my syntax:

eststo: estpost sum varlist if treatschool_2010==0
bysort treated_occ: eststo: estpost sum varlist if year==2010 &
treatschool_2010==0
eststo: estpost sum varlist if treatschool_2010==1
bysort treated_occ: eststo: estpost sum varlist if year==2010 &
treatschool_2010==1
eststo: estpost ttest varlist, by(treatschool_2010)
esttab, cells("mean sd" "t p")  ml("control schools total" "untreated
occupations" "treated occupations" "treated schools total" "untreated
occupations" "treated occupations" "col (1) VS. (4)", span)
coll("Mean" "SD") mgr("control schools" "treated schools" "t-test on
equal means", pattern(1 0 0 1 0 0 1) span)
						
I am sorry if my question is too trivial - I am just a beginner.

Thank you for any suggestions,

Marc Witte
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index