User Tools

Site Tools


repeated_measure_anova

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
repeated_measure_anova [2023/05/03 08:00] – [demo1] hkimscilrepeated_measure_anova [2023/05/03 08:04] (current) – [demo 2] hkimscil
Line 324: Line 324:
 Residuals 17 1412.6   83.10  Residuals 17 1412.6   83.10 
 </code> </code>
 +The above is <fc #ff0000>**WRONG**</fc>.
 +<code>
 +within.aov.mod <- aov(response~factor(drug)+Error(factor(patient)), data=df)
  
 +summary(within.aov.mod)
 +</code>
 +
 +<code>
 +> within.aov.mod <- aov(response~factor(drug)+Error(factor(patient)), data=df)
 +
 +
 +> summary(within.aov.mod)
 +
 +Error: factor(patient)
 +          Df Sum Sq Mean Sq F value Pr(>F)
 +Residuals  4  680.8   170.2               
 +
 +Error: Within
 +             Df Sum Sq Mean Sq F value   Pr(>F)    
 +factor(drug)  3  698.2   232.7   24.76 1.99e-05 ***
 +Residuals    12  112.8     9.4                     
 +---
 +Signif. codes:  
 +0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
 +
 +
 +</code>
 ====== two way ====== ====== two way ======
 <code> <code>
repeated_measure_anova.txt · Last modified: 2023/05/03 08:04 by hkimscil

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki