Biostatistics 300 #BALANCED TWO-WAY ANOVA #FIXED EFFECTS (ANOVA MODEL I) #WITHOUT REPLICATION #ZAR EXAMPLE 12.4 ZAR=read.table("ZarEX12.4R.txt") ZAR attach(ZAR) Y=time A=factor(treatment) B=factor(block) options(digits=12) anova(lm(Y~A*B)) #CALCULATING ANOVA F: F=3.854166667/0.369791667 F alpha=0.05 dfA=2 dfE=8 C=qf(1-alpha,dfA,dfE) C P=1-pf(F,dfA,dfE) P