简体   繁体   中英

Psych Package - Extract factor scores from fa.poly function

I used fa.poly function for factor analysis of categorical manifest variables. I am now trying to extract the factor scores from the results. However, the str function indicates that factor scores are not "stored" in the results.

This is in contrast to the factor analysis function for continuous variables - fa - where the scores are stored in the results and can be extracted using results$scores

results <- fa.poly(inputdata, 4, fm = "pa", rotate = "oblimin")

results$scores gives NULL

VERSUS

results2 <- fa(inputdata, 4, fm = "pa", rotate = "oblimin")

results2$scores gives desired results

Please update to 1.3.10.12 which was just added to Cran this weekend. I finally got around to allowing you to do this.

Bill

使用fa函数,但在代码中添加cor="poly"以确保它对序数变量使用cor="poly"相关:

results2 <- fa(inputdata, 4, fm = "pa", rotate = "oblimin", cor = "poly")

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM