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)

Search this site

 

 

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: num Df Sum Sq Mean Sq F value Pr(>F) var 5 34.987 6.997 25.852 6.239e-09 *** Residuals 24 6.496 0.271 --- Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1 > #fit the model without the intercept term > #to obtain the full set of group means and > #standard errors > ver1=lm(num~var-1,ecover) > summary(ver1) Call: lm(formula = num ~ var - 1, data = ecover) Residuals: Min 1Q Median 3Q Max -0.900 -0.275 -0.070 0.195 0.880 Coefficients: Estimate Std. Error t value Pr(>|t|) varA 3.7000 0.2327 15.903 3.02e-14 *** varB 2.9000 0.2327 12.464 5.67e-12 *** varC 1.8800 0.2327 8.080 2.64e-08 *** varD 2.2200 0.2327 9.542 1.22e-09 *** varE 0.5600 0.2327 2.407 0.024143 * varF 0.9200 0.2327 3.954 0.000592 *** ---