Description Usage Arguments Details Value
View source: R/jagsNEC_input.R
Checks the model inputs for a jagsNEC model fit
1 2 3 4 5 6 7 8 9 10 11 | jagsNEC_input(
data,
x.var,
y.var,
trials.var,
x.type,
y.type,
params,
over.disp,
model
)
|
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. |
params |
a vector of names indicating the parameters to trace during the jags fit. |
model |
the type of model to be fit. Currently takes values of "NEC3param", "NEC4param", "NECsigmoidal", "NECHormesis", "ECx4param", "ECxExp", "ECxLinear", "ECxsigmoidal", "ECxWeibull1", or "ECxWeibull2". |
This is a wrapper function to test input data criteria and write the jags model file for use in a jagsNEC model fit
Modified elements of the jagsNEC input data.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.