Re: [R] anova error

2010-12-01 Thread Douglas Bates
On Wed, Dec 1, 2010 at 9:02 AM, Ben Bolker wrote: > > > Peter Ehlers ucalgary.ca> writes: > >> >> It might be a good idea not to use an outdated version of R. >> I don't see your "problem" in R 2.12.0. >> >> Peter Ehlers >> >> On 2010-12-01 05:44, Jean.Coursol math.u-psud.fr wrote: >> > Just for

Re: [R] anova error

2010-12-01 Thread David Winsemius
On Dec 1, 2010, at 9:18 AM, Peter Ehlers wrote: It might be a good idea not to use an outdated version of R. I don't see your "problem" in R 2.12.0. Furthermore isn't it a bit to be asking why the sign on a number that is effectively zero happens to be negative? I would think that FAQ 7

Re: [R] anova error

2010-12-01 Thread Ben Bolker
Peter Ehlers ucalgary.ca> writes: > > It might be a good idea not to use an outdated version of R. > I don't see your "problem" in R 2.12.0. > > Peter Ehlers > > On 2010-12-01 05:44, Jean.Coursol math.u-psud.fr wrote: > > Just for fun > > > > This small program gives negative Sum of Sq in a

Re: [R] anova error

2010-12-01 Thread Peter Ehlers
It might be a good idea not to use an outdated version of R. I don't see your "problem" in R 2.12.0. Peter Ehlers On 2010-12-01 05:44, jean.cour...@math.u-psud.fr wrote: Just for fun This small program gives negative Sum of Sq in anova (with R versions 2.9.2 and 2.10.0) (linux 32 kernel 2.6.29

[R] anova error

2010-12-01 Thread Jean . Coursol
Just for fun This small program gives negative Sum of Sq in anova (with R versions 2.9.2 and 2.10.0) (linux 32 kernel 2.6.29.6-smp slackware 13.0) : y = c(3.6, 5.0, 5.0, 4.6, 4.5, 4.3, 4.5, 5.1, 4.5, 4.3) trans = as.factor(c("NT","NT","NT","NT","NT","T","T","T","T","T")) lc = lm(y ~ trans) l1

Re: [R] ANOVA error

2008-06-19 Thread Peter Alspach
Dani > I have a dataframe named myMatrix with the structure If it really is a dataframe, why is it called myMatrix :-) I guess you actually have a factor matrix. From the message below, Cr would appear to be a factor. There are some fundamental distinctions in R (such as between a matrix and

[R] ANOVA error

2008-06-19 Thread Dani Valverde
Hello, I have a dataframe named myMatrix with the structure TreatmentTimeCrmIb ... Being the treatment and time the predictors and Cr, mIb and so on the response variables. When I call Cr.aov <- aov(Cr~Treatment, data=myMatrix) I got this error: Error in storage.mode(y) <- "doub