forked from amices/mice
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmira.R
45 lines (45 loc) · 1.96 KB
/
mira.R
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
#'Multiply imputed repeated analyses (\code{mira})
#'
#'The \code{mira} object is generated by the \code{with.mids()} function.
#'The \code{as.mira()}
#'function takes the results of repeated complete-data analysis stored as a
#'list, and turns it into a \code{mira} object that can be pooled. Pooling
#'requires that \code{coef()} and \code{vcov()} methods are available for
#'fitted object. The \code{mira} class of objects has methods for the
#'following generic functions: \code{print}, \code{summary}.
#'
#'@section Slots:
#' \describe{
#' #' \item{\code{.Data}:}{Object of class \code{"list"} containing the
#' following slots:}
#' \item{\code{call}:}{The call that created the object.}
#' \item{\code{call1}:}{The call that created the \code{mids} object that was used
#'in \code{call}.}
#' \item{\code{nmis}:}{An array containing the number of missing observations per
#'column.}
#' \item{\code{analyses}:}{A list of \code{m} components containing the individual
#'fit objects from each of the \code{m} complete data analyses.}
#' }
#'
#' @note Many of the functions of the \code{mice} package do not use the S4 class definitions,
#' and instead rely on the S3 list equivalent \code{oldClass(obj) <- "mira"}.
#'
#'@name mira-class
#'@rdname mira-class
#'@aliases mira-class mira
#'@author Stef van Buuren, Karin Groothuis-Oudshoorn, 2000
#'@seealso \code{\link{with.mids}}, \code{\link[=mids-class]{mids}}, \code{\link{mipo}}
#'@references van Buuren S and Groothuis-Oudshoorn K (2011). \code{mice}:
#'Multivariate Imputation by Chained Equations in \code{R}. \emph{Journal of
#'Statistical Software}, \bold{45}(3), 1-67.
#'\url{https://www.jstatsoft.org/v45/i03/}
#'@keywords classes
#'@export
setClass("mira",
representation(
call = "call",
call1 = "call",
nmis = "integer",
analyses = "list"),
contains = "list"
)