Displaying 1 result from an estimated 1 matches for "pridict".
Did you mean:
predict
2012 Jan 24
0
PCA for assets based household income analysis (" hetcor" and "princomp")
...observation
library(epicalc)library(foreign)library(polycor)
assets.mat <- hetcor(assets, use="complete.obs")[[1]] assets.pca <- princomp(covmat = assets.mat, scores=T)assets$income<-predict(assets.pca)[,1]
the problems are why this "pridict" commend throwing error in scenario 2 and not in scenario 1?Is there any other way to predict the values for each observation?
thanks a lotmm
[[alternative HTML version deleted]]