Last chance! 50% off unlimited learning
Sale ends in
ezPlot2
.ezBoot(
data
, dv
, wid
, within = NULL
, between = NULL
, resample_within = TRUE
, iterations = 1e3
, lmer = FALSE
, lmer_family = gaussian
, parallel = FALSE
, alarm = FALSE
)
data
that contains the dependent variable. Values in this column must be numeric.data
that contains the variable specifying the case/Ss identifier.data
that contain predictor variables that are manipulated (or observed) within-Ss. If a single value, may be specified by name alone; if multiple values, must be specified as a .() list.data
that contain predictor variables that are manipulated (or observed) between-Ss. If a single value, may be specified by name alone; if multiple values, must be specified as a .() list.lmer=TRUE
), you must specify the residuals family. While the bootstrap is in theory non-parametric, it may be more powerful if you specify a family that might reasonably expectlibrary(doMC);options(cores=4);registerDoMC()
. Likely only to work when running R from a unix terminal.)link[lme4]{lmer}
object consisting of the original mixed effects modelwithin
and between
are both optional, at least one column of data
must be provided to either within
or between
. Any numeric or character variables in data
that are specified as either wid
, within
or between
will be converted to a factor with a warning. Prior to running, dv
is collapsed to a mean for each cell defined by the combination of wid
, within
or between
.link{ezANOVA}
, ezMixed
, ezPerm
, ezPlot2
, ezResample
#Read in the ANT data (see ?ANT).
data(ANT)
head(ANT)
ezPrecis(ANT)
#Run ezBoot on the accurate RT data
rt = ezBoot(
data = ANT
, dv = rt
, wid = subnum
, within = .(cue,flank)
, between = group
, iterations = 1e1 #1e3 or higher is best for publication
)
#plot the full design
p = ezPlot2(
preds = rt
, x = flank
, split = cue
, col = group
)
print(p)
#plot the effect of group across the flank*cue design
p = ezPlot2(
preds = rt
, x = flank
, split = cue
, diff = group
)
print(p)
#plot the flank*cue design, averaging across group
p = ezPlot2(
preds = rt
, x = flank
, split = cue
)
print(p)
Run the code above in your browser using DataLab