miPrint(x, data = T, Imputations = T, ...)
TRUE
then the original data (without imputations) is printed.
TRUE
then imputations are printed
x
, with the invisible flag set to prevent reprinting.
In some cases
x
will be restructured into an equivalent
mi
object.
If
x
is a data frame,
the original data is printed, followed
by the multiple imputations for each variable.
If
x
is an
miVariable
object or can be converted to one
the data are printed followed by multiple imputations.
Otherwise it is not be possible to separate the data from the
imputations, and both may be printed.
This is a generic function; there is a method for
miVariable
objects,
for data frames, and a default method.
# print and miPrint for a vector (an miVariable) cholesterolImpExample[[3]] miPrint(cholesterolImpExample[[3]]) miPrint(cholesterolImpExample[[3]], Imputations = F) miPrint(cholesterolImpExample[[3]], data = F) # ... for a data frame containing miVariable's cholesterolImpExample # note "NA/MI" miPrint(cholesterolImpExample) # print imputations too