Skip to content
Prev 314457 / 398502 Next

Extracting factors from "factanal"

Hi
myscores <- factanal(m1, factors = 3,scores = "Bartlett")$scores
[1] -0.9039949 -0.8685952 -0.9082818 -1.0021975 -0.9039949 -0.7452711
 [7] -0.7098714 -0.7495580 -0.8080740 -0.7452711  0.9272282  0.9626279
[13]  0.9229413  0.8290256  0.9272282  0.4224366  1.4713902  1.8822320

or
[1] -0.9039949 -0.8685952 -0.9082818 -1.0021975 -0.9039949 -0.7452711
 [7] -0.7098714 -0.7495580 -0.8080740 -0.7452711  0.9272282  0.9626279
[13]  0.9229413  0.8290256  0.9272282  0.4224366  1.4713902  1.8822320
selects a factor score. myscore is a matrix so you cannot use $ notation. However you can convert it to data frame.

Regards
Petr