Converts a tam.pv object and a matrix of covariates
into a list of multiply imputed datasets. This list can be conveniently
analyzed by R packages such as semTools, Zelig, mice
or BIFIEsurvey.
tampv2datalist(tam.pv.object, pvnames=NULL, Y=NULL, Y.pid="pid",
as_mids=FALSE, stringsAsFactors=FALSE)Generated tam.pv object
Variable names of generated plausible values
Matrix with covariates
Person identifier in Y matrix. It is not required that a person
identifier is provided. In this case, the merge of the datasets will
be conducted as for rbind.
Logical indicating whether the datalist
should be converted into an object of class mids for
analysis in the mice package. This functionality uses the
the function miceadds::datalist2mids.
Logical indicating whether strings in the data frame should be converted into factors
List of multiply imputed datasets or an mids object
For examples see tam.pv.