help misum

Title

misum -- Summary statistics in MI dataset

Syntax

misum [varlist] [if] [in] [weight] [, m(numlist) detail
format(%fmt) matrix(name)]

by is allowed

aweights, fweights and iweights are allowed. However,
iweights are not allowed with detail. See summarize

Description

misum calculates summary statistics in MI datasets. The program combines results from
summarize, applying Rubin's combination rules.

Remarks

misum requires mi data to be flong style. To
change the style of mi data use mi convert flong.

Options

Options

m(numlist) combines results from imputed datasets numlist.

detail calculates additional statistics. Median, skewness and kurtosis are
displayed for each variable in an additional matrix.

format(%fmt) displays results in specified format.

matrix(name) returns result matrix in r(name). If detail is
also specified, matrix r(name_d) is returned additionaly.

Example

. sysuse auto
(1978 Automobile Data)

. mi set flong

. mi register imputed rep78

. mi impute regress rep78 price mpg weight foreign ,add(5)

[output omitted]

. misum price weight rep78

m=1/5 data

Variable | Mean SD min max N
-------------+-------------------------------------------------------
price | 6165.257 2949.496 3291 15906 74
weight | 3019.459 777.1936 1760 4840 74
rep78 | 3.405173 .9874648 1 5.105155 74

. misum rep78 ,detail

m=1/5 data

Variable | Mean SD min max N
-------------+-------------------------------------------------------
rep78 | 3.405173 .9874648 1 5.105155 74

Variable | p50 Skewness Kurtosis
-------------+---------------------------------
rep78 | 3 -.0418277 2.654632

. return list

scalars:
r(rep78_p99) = 5.105155181884766
r(rep78_p95) = 5
r(rep78_p90) = 5
r(rep78_p75) = 4
r(rep78_p25) = 3
r(rep78_p10) = 2
r(rep78_p5) = 2
r(rep78_p1) = 1
r(rep78_kurtosis) = 2.654631682655315
r(rep78_skewness) = -.0418276860909651
r(rep78_p50) = 3
r(rep78_sum) = 251.9827878952027
r(rep78_sum_w) = 74
r(rep78_Var) = .9753773811180893
r(rep78_N) = 74
r(rep78_max) = 5.105155181884766
r(rep78_min) = 1
r(rep78_sd) = .9874648279159382
r(rep78_mean) = 3.40517280939463

Saved results

misum calls summarize and saves any results returned for each variable. It
therefore saves the following in r():

Scalars

r(varname_stat)	stat returned by summarize for varname

Matrices

r(name) result matrix (matrix only)

Author

Daniel Klein, University of Bamberg, klein.daniel.81.@gmail.com

Also see

Online: mi, summarize