jagsNEC_input: jagsNEC_input

Description Usage Arguments Details Value

View source: R/jagsNEC_input.R

Description

Checks the model inputs for a jagsNEC model fit

Usage

 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
)

Arguments

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".

Details

This is a wrapper function to test input data criteria and write the jags model file for use in a jagsNEC model fit

Value

Modified elements of the jagsNEC input data.


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