r - Getting factor analysis scores when using the factanal function -


i have used factanal function in r factor analysis on data set.

viewing summary of output, see have access loading , other objects, interested in scores of factor analysis.

how can scores when using factanal function?

i attempted calculate scores myself:

m <- t(as.matrix(factor$loadings)) n <- (as.matrix(dataset)) scores <- m%*%n 

and got error:

error in m %*% n : non-conformable arrays

which i'm not sure why, since double checked dimension of data , dimensionality in agreement.

thanks help.

ah.

factormodel$loadings[,1] %*% t(dataset) 

Comments

Popular posts from this blog

jQuery Mobile app not scrolling in Firefox -

c++ - How to add Crypto++ library to Qt project -

php array slice every 2th rule -