遇到问题先看帮助文件
[R] tabstat -- Compact table of summary statistics
(View complete PDF manual entry)
Syntax
tabstat varlist [if] [in] [weight] [, options]
options Description
--------------------------------------------------------------------------------------
Main
by(varname) group statistics by variable
statistics(statname [...]) report specified statistics
Options
labelwidth(#) width for by() variable labels; default is
labelwidth(16)
varwidth(#) variable width; default is varwidth(12)
columns(variables) display variables in table columns; the default
columns(statistics) display statistics in table columns
format[(%fmt)] display format for statistics; default format is %9.0g
casewise perform casewise deletion of observations
nototal do not report overall statistics; use with by()
missing report statistics for missing values of by() variable
noseparator do not use separator line between by() categories
longstub make left table stub wider
save store summary statistics in r()
--------------------------------------------------------------------------------------
by is allowed; see [D] by.
aweights and fweights are allowed; see weight.