[R] Creating a list of all objects

2011-03-29 Thread Sam Brown
Dear all I am trying to create a list of all objects created over the course of a function. To wit: foo <- function(x){ first <- x*(1:8) second <- matrix(x*(1:16), ncol = 4) third <- 1:x list(x=x, first=first, second=second, third=third) } foo(5) No worries there. However,

Re: [R] MANOVA proportion of variance explained

2010-06-20 Thread Sam Brown
nd a given > effect tested on p response measures > > eta2(Pillai) = Pillai / s > eta2(HLT) = HLT / (HLT+s) > where s = min(df_h, p) > > Alternatively, you could look at the candisc package which, for an > s-dimensional effect, gives a breakdown of the variance reflecte

[R] MANOVA proportion of variance explained

2010-06-15 Thread Sam Brown
Hello everybody After doing a MANOVA on a bunch of data, I want to be able to make some comment on the amount of variation in the data that is explained by the factor of interest. I want to say this in the following way: XX% of the data is explained by A. I can acheive something like wh