Skip to content

Extracting factors from "factanal"

6 messages · Virgile Capo-Chichi, PIKAL Petr, Brian Ripley

#
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
#
On 02/01/2013 10:34, PIKAL Petr wrote:
If you give your observations names, the names would (AFAIK) be used for 
the scores.