Utility function for bmdbounds
bmdobj(
bmd,
fname,
bmr,
conc,
resp,
ps,
mll,
onesp,
partype = 2,
poly2.biphasic = TRUE,
x_v
)
Objective function value to find the zero of.
Benchmark dose.
Function name: "exp2", "exp3", "exp4", "exp5", "hillfn", "gnls", "poly1", "poly2", or "pow".
Benchmark response.
Vector of concentrations NOT in log units.
Vector of corresponding responses.
Named list of parameters.
Maximum log-likelihood of winning model.
One-sided p-value.
Number for parameter type. Type 1 is y-scaling: a or tp. Type 2 is x-scaling: b or ga, when available, a otherwise. Type 3 is power scaling: p when available, then b or ga, then a if no others. Since bmd is linked to the x-scale, type 2 should always be used. Other types can also be vulnerable to underflow/overflow.
If poly2.biphasic = TRUE, constraints are set to allow for the polynomial 2 model fit to be bi-phasic (i.e. non-monotonic).
The vertex of the quadratic/parabolic fit. Only in use when estimating the BMDL and BMDU values for the "poly2" model when poly2.biphasic = TRUE. No default is set.