I'm uncertain on how I would run a PCA analysis via prcomp after running the mice function in R
If I run:
imp <- mice(Data, maxit = 20, m = 5)
It is my understanding that I now have 5 imputations of the data. In the JSS Buuren paper they then run:
fit <- with(imp, lm(chl ~ age + bmi))
pool(fit)
Which I understand that as running a linear regression with the 5 imputated data sets and then pooling the findings.
If I'm interested in instead running prcomp would I insert prcomp instead of lm in the with function?
Or would I possibly be better off extracting the 5 imputations via the complete function and averaging them and then inputing the averaged data into the prcomp function?
Thanks