-------------------------------------------------------------------------------
Title
sum2 -- Store summary statistics suitable for use with table-making
Syntax
sum2 [, options]
Description
sum2 provides a fast and easy way to store summary statistics for use with standard table-making programs such as outreg, outreg2, estimates_table, xmltab, etc.
sum2 was motivated in part by mfx2 and margeff that do the same thing for marginal effcts.
sum2 will only report for variables and observations used in the last regression command. Therefore it will work only after a regression has run.
More specifically, sum2 will store the mean in e(b) matrix and the cross-product of the std. dev. in e(V) matrix.
Options
+------+ ----+ Main +-------------------------------------------------------------
replace the stored estimates is replaced with summary stats. This is a reminder that you are getting rid of the previously stored estimates.
Examples
* use with outreg2 sysuse auto, clear reg mpg headroom length rep78 outreg2 using myfile, replace sum2, replace outreg2 using myfile, see noaster
* use with original outreg sysuse auto, clear reg mpg headroom length rep78 sum2, replace outreg using myfile.txt, replace nonote noaster type myfile.txt
Issues
Matsize limitations may bite if there is a large number of variables. Try increasing matsize in that case.
Author
Roy Wada roywada@hotmail.com