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

YWC.data

A data frame for multivariate imputation


Description

The data serves as an worked example for PAN as follows,.

head(YWC.data)
Yi.Matrix <- as.matrix(YWC.data[,4:39])
Subj.vector <- as.vector(as.matrix(YWC.data[,2]))
YWC.data$intercept <- 1. 
Pred.Matrix <- as.matrix(YWC.data[,c(40,3)])
xcol <- 1:2
zcol <- 1
a.parameter = ncol(Yi.Matrix)
Binv.parameter = diag(a.parameter*a.parameter)
c.parameter = (zcol*ncol(Yi.Matrix))
Dinv.parameter = diag(c.parameter*c.parameter)
Prior.Distribution <- list(a = a.parameter, 
                           Binv = Binv.parameter, 
                           c = c.parameter, 
                           Dinv = Dinv.parameter)
Imputation.Result <- pan(Yi.Matrix, Subj.vector, Pred.Matrix, xcol, zcol, Prior.Distribution, seed=44896, iter=1000)

Usage

data(YWC.data)

Format

A data frame

Source

Steven J. Pierce


pan

Multiple Imputation for Multivariate Panel or Clustered Data

v1.6
GPL-3
Authors
Original by Joseph L. Schafer
Initial release
2018-06-29

We don't support your browser anymore

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