Description Usage Arguments Value
View source: R/fit_jagsMANEC.R
Fits a variety of NEC models using jags and provides a model averaged predictions based on DIC model weights
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
data |
a data.frame containing the data to use for the model |
x.var |
the column heading indicating the concentration (x) variable |
y.var |
the column heading indicating the response (y) variable |
trials.var |
the column heading indicating the column for the number of "trials" for binomial response data. If not supplied, the model may run but will not be the model you intended! |
x.type |
the statistical distribution to use for the x (concentration) data. This will be guess based on the characteristic of the input data if not supplied. |
y.type |
the statistical distribution to use for the y (response) data. This may currently be one of 'binomial', 'poisson',' 'gaussian', 'beta', 'negbin' or 'gamma'. Others can be added as required, please contact the package maintainer. If not supplied, the appropriate distribution will be guessed based on the distribution of the input data. |
burnin |
the number of iterations to use as burnin. |
n.iter |
the number of iterations to run following burnin for the initial jags fit. Defaults to 500 + burnin, |
n.tries |
the number of tries to attempt to fit the model and attain good chain mixing. See details below. |
params |
a vector of names indicating the parameters to trace during the jags fit. |
sig.val |
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. |
model.set |
A vector of the names of model types to be fit. Currently defaults to all available model types. If "NEC" is supplied, only the NEC models will be fit. If "ECx" is supplied, only continuous curve models will be fit. see ?fit.jagsNEC to see the available models to fit. |
All successully fitted jags model fits, mod.stats a data.frame of model fit statistics, NEC a model averaged posterior of the estimated NEC, and pred.vals a list of model averaged predictions.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.