anchorpartner15: Plausible values imputation within couples using the PIAAC-L...

Description Usage Arguments Value References

Description

This function estimates a four-dimensional latent regression model (first dimension: PIAAC-L 2015 literacy, second dimension: PIAAC-L 2015 numeracy, third dimension: PIAAC-L 2015 reading, fourth dimension: PIAAC-L 2015 mathematics) for binary item response data considering partially missing covariate data. Anchor persons and their partners are treated as one observation. For more detailed information on the statistical model and the estimation algorithm, see the PIAAC-L technical report on scaling (Carstensen, Gaasch & Rothaug, 2017).

Usage

1
2
anchorpartner15(path, Xanchor = NULL, Xpartner = NULL, nopvs = 10,
  itermcmc = 22000, burnin = 2000)

Arguments

path

full path of the folder containing the data files ZA5845 and ZA5989_Persons_15 in Stata format.

Xanchor

data frame containing the permanent person ID (named pnrfestid) and background variable from the PIAAC and PIAAC-L Scientific Use Files. They can be numeric or factor variables and contain missing values coded as NA. With Xanchor set to NULL (default) no background variables of the anchor person are considered. With both Xanchor and Xpartner set to NULL an empty population model will be estimated.

Xpartner

data frame containing the permanent person ID (named pnrfestid) and background variable from the PIAAC and PIAAC-L Scientific Use Files. They can be numeric or factor variables and contain missing values coded as NA. With Xpartner set to NULL (default) no background variables of the partner are considered. With both Xanchor and Xpartner set to NULL an empty population model will be estimated.

nopvs

number of plausible values to draw for each respondent.

itermcmc

number of MCMC iterations.

burnin

number of burnin iterations.

Value

list with nopvs elements, each containing a data frame of the sequential ID, plausible values for each dimension and, if specified, imputed versions of X. Additionally each list element is saved as a Stata file in the folder specified by path.

References

Carstensen, C. H., Gaasch, J.-C., & Rothaug, E. (2017). Scaling PIAAC-L cognitive data: technical report. Manuscript in preparation.


jcgaasch/PVPIAACL documentation built on May 12, 2019, 8:43 a.m.