Learn R Programming

DHARMa (version 0.3.3.0)

runBenchmarks: Benchmark calculations

Description

This function runs statistical benchmarks, including Power / Type I error simulations for an arbitrary test with a control parameter

Usage

runBenchmarks(calculateStatistics, controlValues = NULL, nRep = 10,
  alpha = 0.05, parallel = F, ...)

Arguments

calculateStatistics

the statistics to be benchmarked. Should return one value, or a vector of values. If controlValues are given, must accept a paramteter control

controlValues

a vector with a control parameter (e.g. to vary the strength of a problem the test should be specific to)

nRep

number of replicates per level of the controlValues

alpha

significance level

parallel

whether to use parallel computations. Possible values are F, T (sets the cores automatically to number of available cores -1), or an integer number for the number of cores that should be used for the cluster

...

additional parameters to calculateStatistics