extract_NSEC: extract_NSEC

Description Usage Arguments Value

View source: R/extract_NSEC.R

Description

Extracts the predicted NSEC value as desired from a jagsNEC or a jagsMANEC model fit.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
extract_NSEC(
  X,
  sig.val = 0.01,
  precision = 10000,
  posterior = FALSE,
  type = "absolute",
  hormesis.def = "control",
  xform = NA,
  x.range = NA,
  prob.vals = c(0.5, 0.025, 0.975),
  link = "identity"
)

Arguments

X

a jag model fit as returned by a call to jags from fit.jagsNEC

sig.val

the Probability value to use as the lower quantile to test significance of the predictor posterior values against the control, to estimate NSEC as an interpolated NOEC value from smooth ECx curves.

precision

The number of unique x values over which to find NSEC - large values will make the NSEC estimate more precise.

posterior

A logical value indicating if the full posterior sample of calculated NSEC values should be returned instead of just the median and 95 credible intervals.

xform

A function to apply to the returned estimated concentration values

x.range

A range of x values over which to consider extracting NSEC

prob.vals

A vector indicating the probability values over which to return the estimated NSEC value. Defaults to 0.5 (median) and 0.025 and 0.975 (95 percent credible intervals).

Value

A vector containing the estimated NSEC value, including upper and lower 95 percent Credible Interval bounds


AIMS/NEC-estimation documentation built on Dec. 7, 2020, 10:44 a.m.