[R] Odp: Anova
Petr PIKAL
petr.pikal at precheza.cz
Fri May 11 11:08:53 CEST 2007
Hi
r-help-bounces at stat.math.ethz.ch napsal dne 11.05.2007 07:26:00:
> Doea anyone know how to compute components of variance analysis? For
example,
> I have the score of pupils on a test. Each pupil belongs to a school and
> within each school I may have several classes? How can I estimate the
variance
> of the pupils, schools, classes and the errror variance?
>
>
> Any examples?
What is wrong with examples in ?aov or ?lm pages?
e.g.
## From Venables and Ripley (2002) p.165.
data(npk, package="MASS")
## Set orthogonal contrasts.
op <- options(contrasts=c("contr.helmert", "contr.poly"))
( npk.aov <- aov(yield ~ block + N*P*K, npk) )
summary(npk.aov)
coefficients(npk.aov)
Regards
Petr
>
> Any help will be appreciated.
>
> Jason
>
>
> Dr. Iasonas Lamprianou
> Department of Education
> The University of Manchester
> Oxford Road, Manchester M13 9PL, UK
> Tel. 0044 161 275 3485
> iasonas.lamprianou at manchester.ac.uk
>
>
> ___________________________________________________________
>
> now.
>
> [[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