| mheart1s20 | R Documentation |
Fictional heart attack data with missing BMI information, imported from Stata 17. This dataset includes 20 multiply imputed copies of the same dataset, stacked on top of each other in long format.
mheart1s20 mheart1s20.mice
A data frame with 594 rows and 9 variables:
attack Binary outcome;
smokes Binary covariate;
age Continuous covariate
bmi Continuous covariate with some degree of missingness;
female Binary covariate;
hsgrad Binary covariate;
X_mi_id Subject-specific IDContinuous covariate with some degree of missingness (from Stata's internal mi structure);
X_mi_miss Missingness indicator variable (from Stata's internal mi structure);
X_mi_m Identifies each imputed dataset (from Stata's internal mi structure).
An object of class mids of length 5.
The original dataset with missingness consists of 154 patients and can be obtained by subsetting for X_mi_m == 0.
A version of this dataset in mids format (for compatibility with mice is included).
http://www.stata-press.com/data/r17/mheart1s20.dta
data("mheart1s20", package = "mice.mcerror")
data("mheart1s20.mice", package = "mice.mcerror")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.