testFun | R Documentation |
Test fun.density with lower and upper bounds
testFun(fun.density, lower, upper, args = list())
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. |
A function that is called whenever a nondefault density function is passed to DstarM
. It does some rough error checking.
Returns TRUE if no errors occurred, otherwise returns an error message
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.