Number of Multiple Imputations

DESCRIPTION:

Indicates how many multiple imputations an object contains.

USAGE:

miReps(x) 

REQUIRED ARGUMENTS:

x
any object. Normally an miVariable or miList object, or object containing at least one of these as a list component or slot.

VALUE:

number of multiple imputations, or NULL if there are none.

DETAILS:

This function operates recursively if x is a list or object with slots An error occurs if different parts of x have multiple imputations with different numbers of imputations, in order to prevent calculations with inconsistent sets of multiple imputations.

SEE ALSO:

, , , , .

EXAMPLES:

miReps(fuel.frame)  # No multiple imputations 
miReps(crimeImpExample)       # 10 
miReps(cholesterolImpExample) #  5 
# miReps(list(crimeImpExample, cholesterolImpExample)) 
# Previous line would fail -- incompatible sets of imputations.