[R] change the "coeffcients approach" on an anova

Gabor Grothendieck ggrothendieck at gmail.com
Sun Jul 8 02:52:30 CEST 2007


On 7/7/07, vincent guyader <guyader at agrocampus-rennes.fr> wrote:
> hi everybody
>
> I have to do a lot of Anova with R and I would like to have another type of
> coefficients coding.. I explain.
>
> by default if I have 2 temperatures for an experience. 100°C or 130°C and I
> want to see the temperature effect on the presure
> I want to estimate the coefficient of each temperature.
>
> I will obtain ,with the anova, juste one coefficients for example +3,56 (for
> 100°C), and the other (for 130°C) is always  zero.
>
> but I prefer to obtain + 1,78 or the first effect and -1,78 for the second
> (the intercept is also different too)
>
> my script is (it s just an example)
>
> rinfo2 <- (lm(pression~ temp, data=rebe))

Try:

lm(pression ~ temp + 0, rebe)



> anova(rinfo2)
> summary(rinfo2)
>
> what can I change to obtain what I need?
>
> best regards
>
>
>
> --
> _________________________________
> Vincent GUYADER
> École nationale supérieure d'agronomie de Rennes (ENSAR)
> EN156 - Spécialité statistiques appliquées
> 06.22.85.34.27
>
>        [[alternative HTML version deleted]]
>
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
>



More information about the R-help mailing list