[R] Between-group variance from ANOVA

Mark Difford mark_difford at yahoo.co.uk
Mon Aug 24 20:54:50 CEST 2009


Hi Emma,

>> 

R gives you the tools to work this out.

## Example
set.seed(7)
TDat <- data.frame(response = c(rnorm(100, 5, 2), rnorm(100, 20, 2)))
TDat$group <- gl(2, 100, labels=c("A","B"))
with(TDat, boxplot(split(response, group)))
summary(aov(response ~ group, data=TDat))

Regards, Mark.


emj83 wrote:
> 
> can anyone advise me please?
> 
> 
> emj83 wrote:
>> 
>> I have done some ANOVA tables for some data that I have, from this I can
>> read the within-group variance. can anyone tell me how i may find out the
>> between-group variance?
>> 
>> Thanks Emma
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Between-group-variance-from-ANOVA-tp24954045p25121532.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list