Create "miList" Object

DESCRIPTION:

Create or convert an object to class miList.

USAGE:

miList(x, Names) 
as.miList(x, Names) 

For miList:

REQUIRED ARGUMENTS:

x
list whose elements are multiple imputations (completed data sets). This may be omitted if Names is supplied, then x will be created as a list whose elements are NULL.

OPTIONAL ARGUMENTS:

Names
names for imputations, the same length as x.

VALUE:

object of class miList: x with added names and class.

For as.miList:

REQUIRED ARGUMENTS:

x
any mi object, or any ordinary object.
Names
names for imputations. This is required if x is an ordinary object, and ignored otherwise.

VALUE:

object of class miList. If x is an mi object this is a restructured version of x. Otherwise x is replicated to fill in each element of the result. In either case, miSubscript(as.miList(x), k) is the same as miSubscript(x, k).

SEE ALSO:

, , , .

EXAMPLES:

miList(list(3, 4, 5))  # Default names are 1, 2, ... 
as.miList(cholesterolImpExample)