User Tools

Site Tools


r:oneway_anova

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
r:oneway_anova [2020/10/12 16:34] hkimscilr:oneway_anova [2020/10/12 16:36] hkimscil
Line 324: Line 324:
  
 > </code> > </code>
- 
-<code>> tapply(xs$values, xs$ind, mean) 
-   x1    x2    x3  
-51.46 46.94 46.35 </code> 
- 
- 
-SS<sub>between</sub> 
-<code>> meanxs <- mean(xs$values) 
-> mx1 <- mean(x1) 
-> mx2 <- mean(x2) 
-> mx3 <- mean(x3) 
- 
-> x2ss <- 10*((meanxs - mx2)^2) 
-> x3ss <- 10*((meanxs - mx3)^2) 
-> x1ss <- 10*((meanxs - mx1)^2) 
-> xss <- x1ss+x2ss+x3ss 
-> xss 
-[1] 156.302 
-</code> 
- 
  
 ====== E.g. 1 ====== ====== E.g. 1 ======
r/oneway_anova.txt · Last modified: 2022/04/28 10:26 by hkimscil

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki