help misum-------------------------------------------------------------------------------

Title

misum-- Summary statistics in MI dataset

Syntax

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

byis allowed

aweights,fweightsandiweightsare allowed. However,iweightsare not allowed withdetail. See summarize

Description

misumcalculates summary statistics in MI datasets. Results from summarize are combined, applying Rubin's combination rules.

Options+---------+ ----+ Options +----------------------------------------------------------

m(numlist)combines results from imputed datasetsnumlist. Numbers of imputed datasets must be given in ascending order.

detailcalculates additional statistics and returns them inr(). See summarize.

format(%fmt)displays results in specified format.

matrix(name)returns the result matrix inr(name).

Remarks

misumcalls summarize for each imputed dataset. The returned results are added up and divided byM, whereMis the number of imputed datasets. The standard deviation is calculated as the square root of the variance.

misumrequires the data to beflong style(also see mi set, mi convert). The data may also be iniceformat (Royston 2005).

Example

Use withmi(Stata 11 or higher). sysuse auto

. mi set flong

. mi register imputed rep78

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

. misum rep78 price mpg

Use withice(Stata 9.2 or higher). sysuse auto ,clear

. ice rep78 price mpg weight ,clear m(5) cmd(regress)

. misum rep78 price mpg

Saved results

misumcalls summarize and saves any results returned for each variable. It therefore saves the following inr():Scalars

r(varname_stat)(avarage)statforvarnamereturned by summarizeMatrices

r(name)result matrix (matrixonly)

AcknowledgmentsSebastian Pink suggested downward compatibility with Stata 9.2 and data in

iceformat.

ReferencesRoyston, P. (2005) Multiple imputation of missing values: update. Stata Journal 5 (2), 188-201.

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

Also seeOnline:

mi, summarizeif installed:

ice