Displaying 1 result from an estimated 1 matches for "eegprim".
2012 Dec 05
1
Using multcomp::glht() with Anova object
...wiki/EEG#ERP_ANOVA_in_R. My ANOVA has two
factors: Condition (3 levels) and Region (6 levels) and their interaction.
Below is code to run the Anova and get the model object (the data are at
https://docs.google.com/open?id=0B6-m45Jvl3ZmOVFTYVpZYV9sUUk).
data <- as.matrix( read.table( file="EEGpriming.txt", header=T, sep="\t") )
Condition <- c( rep("Cond1", 6), rep("Cond2", 6), rep("Cond3", 6) )
Region <- factor( rep( c("la", "ma", "ra", "lp", "mp", "rp"), 3 ) )
library(car)
model...