InfluentialPoints.com
Biology, images, analysis, design...
 Use/Abuse Principles How To Related
"It has long been an axiom of mine that the little things are infinitely the most important" (Sherlock Holmes)

## One-way fixed effects analysis of variance - using R

### One-way fixed effects analysis of variance

Gives something like this:

 Analysis of Variance Table Response: log(con) Df Sum Sq Mean Sq F value Pr(>F) trt 2 1.1877 0.5938 5.5391 0.006335 ** Residuals 57 6.1109 0.1072 --- Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1 > #fit the model without the intercept term > #IMPORTANT! Ignore P-values for this model below; we are only running it to obtain the full set of group means and standard errors > mod1=lm(log(con)~trt-1,modjoh) > summary(mod1) Call: lm(formula = log(con) ~ trt - 1, data = modjoh) Residuals: Min 1Q Median 3Q Max -0.734847 -0.221694 -0.004491 0.195022 0.926174 Coefficients: Estimate Std. Error t value Pr(>|t|) trtA 3.83429 0.07322 52.37 <2e-16 *** trtB 3.59132 0.07322 49.05 <2e-16 *** trtC 3.50114 0.07322 47.82 <2e-16 ***