help msum (User-written stata packages: mtab)

Title

msum -- Store the results in matrix for a continous variables

Syntax

msum
varlist
[if] [in]
[, options
]

Options
by(varlist:groupvar) variable defining the groups

detail display additional statistics

missing treat missing values like other values

Description

Command msum Store the results of mean, standard deviation, quantitles in matrix.

Options

by(varlist:groupvar) specifies the groupvar that defines the two
groups that ttest will use to test the hypothesis that their means are
equal. Specifying by(groupvar) implies an unpaired (two sample) t test.
Do not confuse the by() option with the by prefix; you can specify
both.

detail produces additional statistics, including skewness, kurtosis, the four smallest and four largest
values, and various percentiles.

missing requests that missing values be treated like other values in calculations of counts, percentages.

Examples

1. load an oneline data

.webuse lbw

2. Store the results (mean, sd, quantitles)

.msum bwt

.msum bwt, by(smoke)

.msum bwt, by(race)

More examples

click on her

Author

Chunsen Wu, the University of Southern Denmark; Odense University Hospital, Denmark

cwu@health.sdu.dk

chunsen.wu@rsyd.dk

Also see

Help: mtab, mtab1, mtab2, mest, mmat, mexcel, and mobs