簡體   English   中英

R中的factanal()函數如何計算因素之間的相關性?

[英]How does factanal() function in R calculate correlations between factors?

使用promax旋轉在R中使用stats包中的factanal()函數時,會得到因子相關性。

tmp = cbind(rnorm(200,2,1.5),rnorm(200,2,1.5),rnorm(200,2,1.5),rnorm(200,2,1.5),rnorm(200,2,1.5),rnorm(200,2,1.5))
print(factanal(tmp, 3, rotation="promax"))

但是,我似乎找不到如何計算這些相關性(R文檔中沒有幫助)。 我也無法使用系數得分的cor()自己重新創建它們。

我猜可能是多因素相關,但我不確定。

它使用以下代碼計算得出,可以在https://github.com/SurajGupta/r-source/blob/master/src/library/stats/R/factanal.R中找到:

tmat <- solve(tmp$rotmat) R <- tmat %*% t(tmat)

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM