Learn R Programming

DHARMa (version 0.1.3)

benchmarkP: General Type I/II benchmarks

Description

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

Usage

benchmarkP(controlValues = 0, getP, nRep = 10, alpha = 0.05, plot = T, parallel = F)

Arguments

controlValues
a vector with a control parameter (e.g. to vary the strength of a problem the test should be specific to)
getP
the test to be benchmarked - this should be a function that takes one of the controlValues as an input, and returns a p-value
nRep
number of replicates per level of the controlValues
alpha
significance level
plot
whether to do a plot
parallel
whether to use parallel computations. Possible values are F, T (parallel cores set to number of cores in the computer -1), or an integer number for the number of cores that should be used

See Also

benchmarkUniformity