FitTT {morseDR}R Documentation

Fits a Bayesian concentration-response model for target-time

Description

Usage

## S3 method for class 'BinaryData'
fit(
  data,
  target.time = NULL,
  inits = NULL,
  n.chains = 3,
  n.adapt = 3000,
  quiet = FALSE,
  warning.print = TRUE,
  n.iter = NA,
  ...
)

## S3 method for class 'ContinuousData'
fit(
  data,
  stoc.part = "gamma",
  target.time = NULL,
  inits = NULL,
  n.chains = 3,
  n.adapt = 3000,
  quiet = FALSE,
  warning.print = TRUE,
  n.iter = NA,
  low.asympt = FALSE,
  ...
)

## S3 method for class 'CountData'
fit(
  data,
  stoc.part = "bestfit",
  target.time = NULL,
  inits = NULL,
  n.chains = 3,
  n.adapt = 3000,
  quiet = FALSE,
  warning.print = TRUE,
  n.iter = NA,
  ...
)

fit(data, ...)

Arguments

data

an object of class BinaryData, CountData or CountinuousData

target.time

the chosen endpoint to evaluate the effect of the chemical compound concentration, by default the last time point available for all concentrations

inits

See jags.model. Optional specification of initial values.

n.chains

number of MCMC chains, the minimum required number of chains is 2

n.adapt

The number of iterations for adaptation. See jags.model for further details.

quiet

if TRUE, does not print messages and progress bars from JAGS

warning.print

if TRUE, print the warnings in REPL

n.iter

if NA, default, the number of iteration is estimated from raftery.diag process, otherwise, set the n.iter provided.

...

Further arguments to be passed to generic methods

stoc.part

a string for stochastic part. For "" model, the stoc.part is "gamma" (default) but can be "normal".

low.asympt

binary TRUE/FALSE. If TRUE, a parameter for the lower side of the assymptote is compute in case of Continuous Data. Default is FALSE.

Value

The function returns an object of class FitTT and BinaryFitTT, which is a list with the following information:

mcmc

an object of class mcmc.list with the posterior distribution

warnings

a table with warning messages

parameters

a list of parameter names used in the model

model.specification

a set of parameters describing th model used

jags.data

a list of the data passed to the JAGS model

original.data

the survData object passed to the function

dataTT

the dataset with which the parameters are estimated


[Package morseDR version 0.1.2 Index]