Print an object containing multiple imputations

DESCRIPTION:

print the original data, multiple imputations, or both

USAGE:

miPrint(x, data = T, Imputations = T, ...) 

REQUIRED ARGUMENTS:

x
any object, normally containing multiple imputations.

OPTIONAL ARGUMENTS:

data
if TRUE then the original data (without imputations) is printed.
Imputations
if TRUE then imputations are printed
...
optional arguments to be passed to print methods.

VALUE:

x, with the invisible flag set to prevent reprinting. In some cases x will be restructured into an equivalent mi object.

DETAILS:

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.

SEE ALSO:

, , .

EXAMPLES:

# 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