Try
names(summary(xxx))
to get the names of the object, zzz. Then you can grab the object by
summary(xxx)$zzz
Kosuke
--
Department of Politics
Princeton University
http://imai.princeton.edu
On Thu, 24 Feb 2011, Jason Sorens wrote:
I'm a real R novice, and I'm having trouble grabbing factor scores from a
Bayesian factor analysis and dropping them into my original dataset. I just
did a simple factor analysis on four variables with one hypothesized factor
using the "factor.mix" model. I saved the factor scores and was able to
display them using the summary command. However, at that point I'm stuck. I
could obviously copy and paste the values into Excel and work with them that
way, but I'd much rather script it all. The summary object doesn't seem to be
a matrix that I can work with easily using what few basic R commands I know.
--
Dr. Jason Sorens, Assistant Professor (716) 645-8436
Dept. of Political Science
http://www.acsu.buffalo.edu/~jsorens/
University at Buffalo, SUNY
520 Park Hall (North Campus)
Buffalo, NY 14260
-
Zelig Mailing List, served by Harvard-MIT Data Center
Send messages: zelig(a)lists.gking.harvard.edu
[un]subscribe Options:
http://lists.gking.harvard.edu/?info=zelig
Zelig program information:
http://gking.harvard.edu/zelig/
-
Zelig Mailing List, served by Harvard-MIT Data Center
Send messages: zelig(a)lists.gking.harvard.edu
[un]subscribe Options:
http://lists.gking.harvard.edu/?info=zelig
Zelig program information:
http://gking.harvard.edu/zelig/