bayesnechurdlefitR/bayesnechurdlefit-methods.R
ecnsec.bayesnechurdlefit.RdExtracts the percent effect at each draw's own NSEC from a
bayesnechurdlefit
An object of class bayesnechurdlefit.
Further arguments to pass to class specific methods. A method refuses any argument it does not use.
The number of unique x values over which the curve is
predicted. It affects only type = "range", where the denominator is
the lowest response the curve predicts over the grid. The default of 500
matches ecx and nsec. With an inline predictor
transformation, their search grid is even on the fitted scale and each
NSEC is returned through the inverse before its effect is reported.
A range of x values over which to predict the curve.
A character vector, taking values of
"absolute" (the default), "relative" or "range". See Details.
The control posterior quantile used as the NSEC reference.
The default is 0.01, as in nsec.
A vector indicating the probability values over which to return the estimated ECNSEC value. Defaults to 0.5 (median) and 0.025 and 0.975 (95 percent credible intervals).
Should the full posterior be returned instead of a summary?
Which curve to use: "combined" (the default),
"growth" or "survival".
How observed group levels are combined. "none" returns
per-level estimates. "mixture" gives each posterior draw to one level, in
proportion to the levels' observation counts, and keeps it at its position,
so that draw i of the mixture comes from posterior iteration
i. Separate fits with different numbers of draws are instead each
sampled over their full posterior. "mean_estimate" averages the levels'
estimates at each draw, and "mean_curve" estimates from their weighted
mean curve. A joint fit defaults to "none"; other fits with spanning group
terms default to "mixture".
"own" reads each level's control recorded at fitting, or
its lowest observed concentration for an older fit or one fitted without
x_control. "shared" reads the lowest control across levels;
a single finite number specifies
the concentration directly. A control below a level's observations
extrapolates its curve, and gives a warning unless it is the control
recorded at fitting. Level controls are recorded in the result's
x_control attribute.
FALSE, the default, uses the prediction range.
A single finite number extends the upper end; two finite numbers may
extend both ends. The original grid points are retained. Limits are on
the recorded predictor scale. TRUE and narrowing limits are refused.
For type = "range" the lowest response is taken over the prediction
range before it is extended.
A vector of estimates.
type = "absolute" (the default) and "range" are
defined here. "relative" is refused, as it is by
ecx for this class: a two-block fit has no single bot
parameter to measure towards. "direct" is refused because it names a
response value rather than a percentage.
Without x_range, every curve is searched over the whole concentration
series, as in ecx.bayesnechurdlefit. The range sets the
lowest predicted response that type = "range" measures towards.
For a group term spanning concentrations, each observed level pairs its
growth and survival predictions before the percentage is read. A level
observed at one concentration is excluded. pool and
x_control use the same rules as for a single fit.