[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 = lm(y ~ 1)

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

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 something to be asking why the sign on a number that is effectively zero happens to be negative? I would think

Re: [R] anova error

2010-12-01 Thread Douglas Bates
On Wed, Dec 1, 2010 at 9:02 AM, Ben Bolker bbol...@gmail.com wrote: Peter Ehlers ehlers at 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 at math.u-psud.fr wrote:

[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) - double

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