Append multiple imputed datasets
miappend using filename-prefix [, nolabel keep(varlist) ]
miappend appends the multiple datasets in the using files to the miset datasets. The first using file is appended to the first miset data file, the second to the second, and so on.
nolabel prevents Stata from copying the value label definitions from the using dataset.
keep(varlist) specifies the variables to be kept from the using data. If keep() is not specified, all variables are kept.
These options are inherited from the parent command append.
The number of using datasets must be the same as mimps in miset. The using files should have a common filename-prefix followed by the numbers 1,2,...,m and with extension .dta.
Assume male1.dta to male5.dta and femal1.dta to femal5.dta are imputed datasets for males and females, respectively. They contain the same variables. By issuing commands
. miset using male . miappend using femal
the datasets are combined as follows:
femal1 is appended to male1 femal2 is appended to male2 ... ... femal5 is appended to male5
To save the resulting datasets as new datasets under the filename prefix both, we use
. misave both
Ning Li, Philip Greenwood, and John Carlin, Clinical Epidemiology & Biostatistics Unit, Murdoch Children's Research Institute and University of Melbourne. Email firstname.lastname@example.org
Online: help for append, miset, mimerge, misave, mido, mici, mifit, milincom, mireset