-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmheart1s20.Rd
45 lines (42 loc) · 1.55 KB
/
mheart1s20.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{mheart1s20}
\alias{mheart1s20}
\alias{mheart1s20.mice}
\title{Fictional Heart Attack Data with Missing BMI}
\format{
A data frame with 594 rows and 9 variables:
\itemize{
\item \code{attack} Binary outcome;
\item \code{smokes} Binary covariate;
\item \code{age} Continuous covariate
\item \code{bmi} Continuous covariate with some degree of missingness;
\item \code{female} Binary covariate;
\item \code{hsgrad} Binary covariate;
\item \code{X_mi_id} Subject-specific IDContinuous covariate with some degree of missingness (from Stata's internal \code{mi} structure);
\item \code{X_mi_miss} Missingness indicator variable (from Stata's internal \code{mi} structure);
\item \code{X_mi_m} Identifies each imputed dataset (from Stata's internal \code{mi} structure).
}
An object of class \code{mids} of length 5.
}
\usage{
mheart1s20
mheart1s20.mice
}
\description{
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.
}
\note{
The original dataset with missingness consists of 154 patients and can be obtained by subsetting for \code{X_mi_m == 0}.
A version of this dataset in \code{mids} format (for compatibility with {mice} is included).
}
\examples{
data("mheart1s20", package = "mice.mcerror")
data("mheart1s20.mice", package = "mice.mcerror")
}
\references{
http://www.stata-press.com/data/r17/mheart1s20.dta
}
\keyword{datasets}