简介:
The official command -ttest- tests that a single variable has the same mean within the two groups defined by groupvar, while another official command -median- do similar things for group medians. -ttable3- performs ttest for a group of variables specified in varlist with formatted table output. When median option is specified, it performs median test.
范例:
* t-test
sysuse auto,clear
ttable3 price wei len mpg, by(foreign)
ttable3 price wei len mpg, by(foreign) f(%8.2f)