4x4x2 ANOVA的非参数等价物

时间:2015-06-22 18:00:08

标签: r anova

我计算了4x4x2 ANOVA(完全在内)。但是,我想应用非参数等价物(可能是Friedman ANOVA)。是否有包装允许这个?我无法将friedman.test()包应用到它。

让我们假设我们呈现了21个具有4个名字的科目,其中2个是男性,2个是女性。我们在4个不同的时间窗口观察到大脑反应。

以下是一些示例数据来说明这种情况:

subject <- c(1:21)
subject <- rep(subject, 16)

Lisa <- "LISA"
Lisa <- rep(Lisa, 21*4)
Michael <- "MICHAEL"
Michael <- rep(Michael, 21*4)
Dorothy <- "DOROTHY"
Dorothy <- rep(Dorothy, 21*4)
Max <- "MAX"
Max <- rep(Max, 21*4)

Name_ALL <- c(Lisa, Michael, Dorothy, Max)

female <- "FEM"
female <- rep(female, 21*4)
male <- "MAL"
male <- rep(male, 21*4)
Sex_ALL <- c(female, male, female, male)

T1 <- "T1"
T1 <- rep(T1, 21)
T2 <- "T2"
T2 <- rep(T2, 21)
T3 <- "T3"
T3 <- rep(T3, 21)
T4 <- "T4"
T4 <- rep(T4, 21)
Time_ALL <- c(T1, T2, T3, T4)
Time_ALL <- rep(Time_ALL, 4)

EEG_value <- rnorm(n=336, m=9, sd=2)

data <- data.frame(subject, EEG_value, Name_ALL, Sex_ALL, Time_ALL)

欢迎任何建议!

0 个答案:

没有答案