[R] Interpreting the results of Friedman test

Doerte doerte.apelt at gmx.de
Fri Apr 24 15:59:37 CEST 2009


Hello again,

it seems, the R script has been filtered from the previous posting.
Thus, I include is as text here:

dataForANOVA <- read.csv("C:/R/dataForANOVA.dat",
                         sep="|",
                         as.is=T,
                         na.strings=".",
                         header=TRUE)
dataForFriedman <- read.csv("C:/R/dataForFriedmanTest.dat",
                            sep="|",
                            as.is=T,
                            na.strings=".",
                            header=FALSE)

anova1 <- lm(AUC~as.factor(Condition),data=dataForANOVA)
result_shapiro <- shapiro.test(anova1$residuals)
result_bartlett <- bartlett.test(anova1$residuals~as.factor
(Condition),data=dataForANOVA)
summaryANOVA1 <- summary(anova1)

anova1Results <- anova(lm(AUC~as.factor(Condition),data=dataForANOVA))
print(anova1Results)

friedman.test(as.matrix(dataForFriedman))




More information about the R-help mailing list