Displaying 1 result from an estimated 1 matches for "table2df".
Did you mean:
ftable2df
2013 Dec 17
1
Polychoric Principal Component Analysis (pPCA)
...lp that expand these reproducible scripts.
#How to conduct polychoric principal component analysis pPCA using
#either of these packages
library(psych)
library(FactoMineR)
library(nsprcomp)
#Bock and Liberman (1970) data set of 1000 observations of the LSAT
#from psych
data(bock)
responses <- table2df(bock.table[,2:6],count=bock.table[,7],
??????????????? labs= paste ("lsat6.",1:5,sep=""))
fix(responses)
describe(responses)
#Estimate the polychoric correlation matrix to be used in
#PCA using psych
W <- polychoric(responses, smooth=TRUE,global=TRUE,polycor=F,
??????????...