nec {bayesnec}R Documentation

Extracts the predicted NEC value as desired from an object of class bayesnecfit or bayesmanecfit.

Description

Extracts the predicted NEC value as desired from an object of class bayesnecfit or bayesmanecfit.

Usage

nec(object, posterior = FALSE, xform = NA, prob_vals = c(0.5, 0.025, 0.975))

Arguments

object

An object of class bayesnecfit or bayesmanecfit returned by bnec.

posterior

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

xform

A function to apply to the returned estimated concentration values.

prob_vals

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

Value

A vector containing the estimated NEC value, including upper and lower 95% credible interval bounds (or other interval as specified by prob_vals).

See Also

bnec

Examples

library(bayesnec)
data(manec_example)
nec(manec_example)


[Package bayesnec version 2.0.2 Index]