Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: comparing means of industry groups
From
"Fabian Schönenberger" <[email protected]>
To
[email protected]
Subject
st: comparing means of industry groups
Date
Sat, 29 Sep 2012 13:43:36 +0200
Dear Statalist
I am working with panel data; id=company, different variables for each company, and a time indicator t. Each company is assigned to an industry group (sic12); there are eleven different industries.
I try to compare the means of one var for the different industries. I am interest in finding out if the means are statistically different among the industries.
Are there any suggestions how to proceed with this analysis?
My first approach was something like:
ttest var if inlist(sic12,1,2),by(sic12)
For each number of 1 to 12 (eleven is missing) the numbers in inlist(sic12,1,2) should vary:
ttest var if inlist(sic12,1,3),by(sic12)
ttest var if inlist(sic12,1,4),by(sic12)
...
ttest var if inlist(sic12,1,12),by(sic12)
ttest var if inlist(sic12,2,3),by(sic12)
I have no idea how to program this.
Suggestions highly appreciated.
Many thanks
FS
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/