Learn R Programming

bayesnec

Overview

bayesnec is a toxicity estimate and No-Effect-Concentration estimation package that uses brms to fit concentration(dose)-response data using Bayesian methods for the purpose of estimating both ECX values, but more particularly NEC. Please see ?bnec for a more detailed help file.

Installation

To install the latest release version from CRAN use

install.packages("bayesnec")

The current development version can be downloaded from GitHub via

if (!requireNamespace("remotes")) {
  install.packages("remotes")
}
remotes::install_github("open-aims/bayesnec", ref = "dev")

Because bayesnec is based on brms and Stan, a C++ compiler is required. The program Rtools comes with a C++ compiler for Windows. On Mac, you should install Xcode. See the prerequisites section on this link for further instructions on how to get the compilers running.

Usage

Usage and further information about bayesnec can be seen on the project page and the vignettes. Help files for the individual functions can be found on the reference page.

Further Information

bayesnec is provided by the Australian Institute of Marine Science under the GPL-2 License (GPL-2).

Copy Link

Version

Install

install.packages('bayesnec')

Monthly Downloads

328

Version

2.1.3.0

License

GPL-2

Maintainer

Rebecca Fisher

Last Published

August 19th, 2024

Functions in bayesnec (2.1.3.0)

compare_estimates

compare_estimates
check_chains

Checking chain convergence
check_formula

Check if input model formula is appropriate to use with bayesnec
compare_fitted

compare_fitted
check_priors

Plots the prior and posterior parameter probability densities from an object of class bayesnecfit or bayesmanecfit.
c.bnecfit

Concatenate multiple bnecfit objects into one single bayesmanecfit object containing Bayesian model averaging statistics.
compare_posterior

compare_posterior
dispersion

Posterior dispersion
manecsummary-class

Class manecsummary of models fitted with the brms package
manec_example

Example bayesmanecfit object
ecx

Extracts the predicted ECx value
expand_manec

Extracts a range of statistics from a list of prebayesnecfit objects.
make_brmsformula

Expose the final brmsformula
is_necsummary

Checks if argument is a necsummary object
fitted

Generates mean posterior linear predictions for objects fitted by bnec
expand_nec

Extracts a range of statistics from a prebayesnecfit object.
necsummary-class

Class necsummary of models fitted with the brms package
herbicide

Herbicide phytotoxicity data
is_manecsummary

Checks if argument is a manecsummary object
plot

Generates a plot for objects fitted by bnec
ggbnec_data

Creates the data.frame for plotting with autoplot.
model.frame

Model.frame methods in bayesnec.
formula

Retrieve formulas from models fitted by bnec
print

Prints a summary for objects fitted by bnec
+.bnecfit

"Add" multiple bnecfit objects into one single bayesmanecfit object containing Bayesian model averaging statistics.
"beta_binomial"

Custom beta-binomial family
pull_brmsfit.bayesnecfit

Extract and object of class brmsfit from bayesnecfit or bayesmanecfit.
models

models
nec_data

Example data of non-linear decay
pull_out

pull_out
update.bnecfit

Update an object of class bnecfit as fitted by function bnec.
pull_prior

pull_prior
nec

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

Extract Diagnostic Quantities of 'brms' Models
prebayesnecfit-class

Class prebayesnecfit of models fitted with the brms package
posterior_predict

Generates posterior predictions for objects fitted by bnec
posterior_epred

Generates posterior linear predictions for objects fitted by bnec
show_params

show_params
nsec

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

sample_priors
predict

Generates mean posterior predictions for objects fitted by bnec
step

step
summary

Generates a summary for objects fitted by bnec
autoplot

bayesnec standard ggplot2 plotting method
bayesnecformula

Set up a model formula for use in bayesnec
bayesnecfit-class

Class bayesnecfit of models fitted with the brms package
bayesmanecfit-class

Class bayesmanecfit of models fitted with the brms package
bnecfit-class

Class bnecfit of models fitted with function bnec
bnec_newdata

bnec_newdata
bayesnec-package

The 'bayesnec' package.
bnec

bnec
average_estimates

average_estimates
amend

Amends an existing bayesmanecfit object