Statalist


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

Re: st: Summary Stat Table


From   Roy Wada <[email protected]>
To   [email protected]
Subject   Re: st: Summary Stat Table
Date   Tue, 10 Nov 2009 16:15:00 -0800

Gmail is bad about this. Hotmail did not mess with carriage returns.

sysuse auto, clear
gen white=cond(uniform()>.5,1,0)
gen black=cond(white==1,0,1)
gen male=cond(uniform()>.5,1,0)
gen female=cond(male==1,0,1)

outreg2 using myfile if white==1 & male==1, sum(log) eqkeep(mean N) /*
*/ cttop(white, male) drop(white male female) excel replace

outreg2 using myfile if white==1 & female==1, sum(log) /*
*/ eqkeep(mean N) cttop( , female) drop(white male female) excel

outreg2 using myfile if white==1, sum(log) eqkeep(mean N) /*
*/ cttop( , total) drop(white male female) excel

outreg2 using myfile if black==1 & male==1, sum(log) eqkeep(mean N) /*
*/ cttop(black, male) drop(white male female) excel

outreg2 using myfile if black==1 & female==1, sum(log) /*
*/ eqkeep(mean N) cttop( , female) drop(white male female) excel

outreg2 using myfile if black==1, sum(log) eqkeep(mean N) /*
*/ cttop( , total) drop(white male female) excel
*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index