testFun {DstarM} | R Documentation |
Test fun.density with lower and upper bounds
Description
Test fun.density with lower and upper bounds
Usage
testFun(fun.density, lower, upper, args = list())
Arguments
fun.density |
A density function to be evaluated. |
lower |
Lower bounds of the parameter space with which |
upper |
Upper bounds of the parameter space with which |
args |
Additional arguments for fun.density. |
Details
A function that is called whenever a nondefault density function is passed to DstarM
. It does some rough error checking.
Value
Returns TRUE if no errors occurred, otherwise returns an error message
Examples
lower = c(.5, -6, .1, 0, 0)
upper = c(2, 6, .99, .99, 10)
args = list(t = seq(0, 5, .01), pars = lower, boundary = 'lower',
DstarM = TRUE)
testFun(fun.density = Voss.density, lower = lower, upper = upper,
args = args)
# TRUE
[Package DstarM version 0.4.0 Index]