Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

tampv2datalist

Conversion of Plausible Value Object into Datalist


Description

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.

Usage

tampv2datalist(tam.pv.object, pvnames=NULL, Y=NULL, Y.pid="pid",
      as_mids=FALSE, stringsAsFactors=FALSE)

Arguments

tam.pv.object

Generated tam.pv object

pvnames

Variable names of generated plausible values

Y

Matrix with covariates

Y.pid

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.

as_mids

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.

stringsAsFactors

Logical indicating whether strings in the data frame should be converted into factors

Value

List of multiply imputed datasets or an mids object

See Also

For examples see tam.pv.


TAM

Test Analysis Modules

v3.6-45
GPL (>= 2)
Authors
Alexander Robitzsch [aut,cre] (<https://orcid.org/0000-0002-8226-3132>), Thomas Kiefer [aut], Margaret Wu [aut]
Initial release
2021-04-22 14:35:52

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.