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 at the end of May, and its replacement, statalist.org is already up and running.


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

st: comparing means of industry groups


From   "Fabian Schönenberger" <sch.f@gmx.ch>
To   statalist@hsphsun2.harvard.edu
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/


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