ezMixed(
data
, dv
, family = gaussian
, random
, fixed
, covariates = NULL
, add_q = FALSE
, fix_gam = TRUE
, cov_gam = TRUE
, gam_smooth = c('s','te')
, gam_bs = 'ts'
, gam_k = Inf
, use_bam = FALSE
, alarm = FALSE
, term_labels = NULL
, highest = Inf
, return_models = TRUE
, correction = AIC
, progress_dir = NULL
, resume = FALSE
, parallelism = 'none'
, gam_args = NULL
, mer_args = NULL
)data that contains the dependent variable. Values in this column must be numeric.data that contain random effects.data that contain fixed effects.data that contain variables to be used as fixed effect covariates.k to supply to calls to gam. Higher values yield longer computation times but may better capture non-linear phenomena. If set to Inf (default), ezMixed will automaticallfixed argument).Inf, will test to the highest possible order.progress_dir argument, the progress directory will be searched for already completed effects and resume from these. Useful if a run was interrupted.gam.formulae, but instead storing errors encountered in fitting each model.formulae, but instead storing warnings encountered in fitting each model.return_models=TRUE) A list similar to formulae but instead storing each fitted model.lmer, or gam when the effect under evaluation includes a numeric predictor. Assessment of each effect of interest necessitates building two models: (1) a The complexity-corrected likelihood ratio returned by ezMixed is represented on the log-base-2 scale, which has the following convenient properties:
lmer, glmer, gam, ezMixedProgress, ezPredict, ezPlot2#Read in the ANT data (see ?ANT).
data(ANT)
head(ANT)
ezPrecis(ANT)
#Run ezMixed on the accurate RT data
rt = ezMixed(
data = ANT[ANT$error==0,]
, dv = .(rt)
, random = .(subnum)
, fixed = .(cue,flank,group)
)
print(rt$summary)
#Run ezMixed on the error rate data
er = ezMixed(
data = ANT
, dv = .(error)
, random = .(subnum)
, fixed = .(cue,flank,group)
, family = 'binomial'
)
print(er$summary)Run the code above in your browser using DataLab