[R] Problem with anova.lmRob() "robust" package
dwinsemius at comcast.net
Thu Jul 28 17:42:31 CEST 2011
On Jul 28, 2011, at 9:13 AM, m.fenati at libero.it wrote:
> Dear R users,
> I'd like to known your opinion about a problem with anova.lmRob() of
> "Robust" package that occurs when I run a lmRob() regression on my
> I check my univariate model by single object anova as
> If I compare my model with the null model (y~1), I must obtain the
> same results,
> but not for my data.
> Is it possible?
> My example:
> If I run the code omitting the factor() (then treating "x" as
> continuous), the results are the same..
I do not get the same results with that code. And the code does not
appear to track your description, since the second model does not have
an "x" term in it. Even when I create the model that it sounded as
though you would have written, namely lmR0 <- lmRob(y ~ x), it is
clearly _not_ the same result.
(Intercept) factor(x)1 factor(x)2
0.2428571 -1.3432007 -0.4000000
> What is the explanation of these different results?
Since you didn't post your results and since your complaint was that
they are "the same", it's hard to know what you are talking about.
David Winsemius, MD
West Hartford, CT
More information about the R-help