forked from insightsengineering/rbmi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathextract_imputed_dfs.Rd
47 lines (43 loc) · 1.54 KB
/
extract_imputed_dfs.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
46
47
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/analyse.R
\name{extract_imputed_dfs}
\alias{extract_imputed_dfs}
\title{Extract imputed datasets}
\usage{
extract_imputed_dfs(
imputations,
index = seq_along(imputations$imputations),
delta = NULL,
idmap = FALSE
)
}
\arguments{
\item{imputations}{An imputations object as created by \code{\link[=impute]{impute()}}.}
\item{index}{The indexes of the imputed data.frames to return. By default,
all data.frames within the imputations object will be returned
(i.e. use this argument if you just want e.g. the first data.frame only).}
\item{delta}{A data.frame containing the delta transformation to be
applied to the imputed dataset. See \code{\link[=analyse]{analyse()}} for details on the
format and specification of this data.frame.}
\item{idmap}{Logical. The subject IDs in the imputed \code{data.frame}'s are
replaced with new IDs to ensure they are unique. Setting this argument to
\code{TRUE} attaches an attribute, called \code{idmap}, to the returned \code{data.frame}'s
that will provide a map from the new subject IDs to the old subject IDs.}
}
\value{
A list of data.frames equal in length to the \code{index} argument.
}
\description{
Extracts the imputed datasets contained within an imputations object generated
by \code{\link[=impute]{impute()}}.
}
\examples{
\dontrun{
extract_imputed_dfs(imputeObj)
extract_imputed_dfs(imputeObj, c(1:3))
}
}
\seealso{
\code{\link[=delta_template]{delta_template()}} for creating delta data.frames.
\code{\link[=analyse]{analyse()}}.
}