YWC.data {pan} | R Documentation |
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
[Package pan version 1.9 Index]