[R] Using Anova Sums of Squares

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Fri Sep 6 11:39:08 CEST 2002


"Maarten Speekenbrink" <mspeekenbrink at fmg.uva.nl> writes:


> but calling summary(fhc.aov)[2]$"Sum Sq" or anything like it (i.e.
> summary(fhc.aov)[2][2] or summary(fhc.aov)[2][1][2]) results in a
> Na. The only way I've been able to get it is by
> unlist(summary(fhc.aov)[2]), which does result in a list with the
> right number of elements, but this is not very handy for indexing...
> Of course I could recompute the Sums of Squares, but since
> summary(aov(...)) already gives them, I would rather get them from
> there. Thanks for your help,

You probably need [[..]] for indexing lists.

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list