[R] Odp: Anova

From: Petr PIKAL <petr.pikal_at_precheza.cz>
Date: Fri, 11 May 2007 11:08:53 +0200


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.



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. Received on Fri 11 May 2007 - 09:13:23 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 11 May 2007 - 11:31:58 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.