mean.dmcfit: mean.dmcfit

Description Usage Arguments Value Examples

View source: R/dmcFit.R

Description

Aggregate simulation results from dmcFitSubject/dmcFitSubjectDE.

Usage

1
2
## S3 method for class 'dmcfit'
mean(x, ...)

Arguments

x

Output from dmcFitSubject/dmcFitSubjectDE

...

pars

Value

mean.dmcfit return an object of class "dmcfit" with the following components:

summary

DataFrame within aggregated subject data (rtCor, sdRtCor, seRtCor, perErr, sdPerErr, sePerErr, rtErr, sdRtErr, seRtErr) for compatibility condition

delta

DataFrame within aggregated subject distributional delta analysis data correct trials (Bin, meanComp, meanIncomp, meanBin, meanEffect, sdEffect, seEffect)

caf

DataFrame within aggregated subject conditional accuracy function (CAF) data (Bin, accPerComp, accPerIncomp, meanEffect, sdEffect, seEffect)

par

The fitted model parameters + final cost value of the fit

Examples

1
2
3
4
5
# Code below can exceed CRAN check time limit, hence donttest
# Example 1: Fit individual data then aggregate
fitSubjects <- dmcFitSubject(flankerData, nTrl = 1000, subjects = c(1, 2))
fitAgg <- mean(fitSubjects)
plot(fitAgg, flankerData)

DMCfun documentation built on Oct. 25, 2021, 9:09 a.m.