#Read in the ANT data (see ?ANT).
data(ANT)
head(ANT)
ezPrecis(ANT)
#Run ezBoot on the accurate RT data
er = ezBoot(
data = ANT
, dv = .(error)
, wid = .(subnum)
, within = .(cue,flank)
, between = .(group)
, family = 'binomial'
, iterations = 1e1 #1e3 or higher is best for publication
)
#convert the error rate predictions from the logit scale (the default binomial scale) to the % scale
er$cells$value = 100*plogis(er$cells$value)
er$boots$value = 100*plogis(er$boots$value)
#plot the full design
from_ezPlotBoot = ezPlotBoot(
from_ezBoot = er
, x = .(flank)
, split = .(cue)
, col = .(group)
)
print(from_ezPlotBoot$plot)
#plot the effect of group across the flank*cue design
from_ezPlotBoot = ezPlotBoot(
from_ezBoot = er
, x = .(flank)
, split = .(cue)
, diff = .(group)
)
print(from_ezPlotBoot$plot)Run the code above in your browser using DataLab