replicate.sim: internal workhorse function to repeatedly call a 'one.sim'...

Description Usage Arguments Value

Description

internal workhorse function to repeatedly call a one.sim function and store the results of every call

Usage

1

Arguments

n.reps

number of simulations to run

type

A string indicating the label for the type of task to be replicated. Currently supports "psychophysics.2afc", "sdt.dprime", "mean.normal", and "diff.normal".

...

arguments ultimately passed to the workhorse single simulation function specified by type. For "psychophysics.2afc", please see the help for one.sim.psyphys2afc. For "sdt.dprime", please see the help for one.sim.sdt.dprime. For "mean.normal", please see the help for one.sim.mean.normal. For "diff.normal", please see the help for one.sim.diff.normal.

Value

a dataframe where each row is a simulation and each column is an estimated parameter.


monicathieu/psytrial documentation built on May 28, 2019, 1 p.m.