Analysing Diazinon impact on the freshwater crustacean Gammarus pulex using GUTS-SIC-proper

Alexander Singer

## For performance reasons, this vignette builds from pre-calculated data.
## 
##  To run all calculations, set 'do.calc <- TRUE' in the vignette's first code chunk. 
##  Building the vignette will take a while.

Summary

The GUTS-package (Albert et al., 2016) implements the individual tolerance model GUTS-SIC-IT, the stochastic death model GUTS-SIC-SD and the GUTS-SIC-proper model, which combines the GUTS-SIC-IT and the GUTS-SIC-SD model (Jager et al., 2011). We demonstrate a Bayesian model calibration of the proper model on the case study of the freshwater crustacean Gammarus pulex being exposed to Diazinon in three pulsed toxicity tests. This vignette follows the description in Albert et al. (2016), but uses a log-logistic threshold distribution, a slightly different calibration procedure and results analysis. The experiment data is provided with the GUTS-package.

Prepare

Load the GUTS-package

library(GUTS)
#> Loading required package: Rcpp
packageVersion("GUTS")
#> [1] '1.1.1'

Load the Diazinon data set

data(diazinon)
str(diazinon)
#> List of 12
#>  $ C1 : num [1:10] 102.7 97.6 0 0 103.9 ...
#>  $ C2 : num [1:9] 101 106 0 0 104 ...
#>  $ C3 : num [1:8] 100.6 94.6 0 0 100.6 ...
#>  $ Ct1: num [1:10] 0 1.02 1.03 2.99 3.01 ...
#>  $ Ct2: num [1:9] 0 1.02 1.03 8 8.01 ...
#>  $ Ct3: num [1:8] 0 1.02 1.03 16 16.01 ...
#>  $ y1 : num [1:23] 70 66 61 55 31 31 29 26 24 22 ...
#>  $ y2 : num [1:23] 70 65 59 56 54 50 47 46 46 40 ...
#>  $ y3 : num [1:23] 70 65 59 55 53 51 48 46 46 46 ...
#>  $ yt1: int [1:23] 0 1 2 3 4 5 6 7 8 9 ...
#>  $ yt2: int [1:23] 0 1 2 3 4 5 6 7 8 9 ...
#>  $ yt3: int [1:23] 0 1 2 3 4 5 6 7 8 9 ...

Set up the guts object

Setting up a GUTS-Proper-object requires for each toxicity test

We generate three GUTS-proper-objects; one for each of the toxicity test. The GUTS-objects are collected in a list.

guts_object <- list( 
  C1 = guts_setup(
    C = diazinon[["C1"]], Ct = diazinon[["Ct1"]],
    y = diazinon[["y1"]], yt = diazinon[["yt1"]],
    model = "Proper", dist = "loglogistic"
    ),
  C2 = guts_setup(
    C = diazinon[["C2"]], Ct = diazinon[["Ct2"]],
    y = diazinon[["y2"]], yt = diazinon[["yt2"]],
    model = "Proper", dist = "loglogistic"
    ),
  C3 = guts_setup(
    C = diazinon[["C3"]], Ct = diazinon[["Ct3"]],
    y = diazinon[["y3"]], yt = diazinon[["yt3"]],
    model = "Proper", dist = "loglogistic"
    )
)

Estimating parameters

library('adaptMCMC') # Function `MCMC()`, Monte Carlo Markov Chain.
#> Loading required package: parallel
#> Loading required package: coda
#> Loading required package: Matrix

Define joint log likelihood

The list of GUTS-objects is used to calculate the joint likelihood of all studies.

Define constraints on parameter values

The logposterior function is formulated with a function that defines parameter bounds.

Constraints on parameters should consider

Guess suitable initial values

Suitable initial parameter values for the MCMC algorithm are searched by optimization.

Bayesian parameter estimation

Show parameter estimation results

Chain and distribution plots.

The top four graphs show mixing and distribution of the parameters. The last row “LL” show mixing and distribution of the logposterior. A final plot indicates correlations among calibrated parameters.

Estimated parameter values compared to the values.

This function summarizes the calibrated parameter values

Summarize the parameter values. Black dots indicate best estimates and 95% credible interval.

#>               hb         ke         kk        mn     beta
#> best  0.05419889 0.07855954  1.9568502 13.003834 4.474065
#> 2.5%  0.04582155 0.03000025  0.9777145  5.873345 3.402147
#> 50%   0.05731815 0.09095216  4.1587462 14.895586 5.255860
#> 97.5% 0.06996546 0.17812121 24.8098689 25.889733 9.324321

Forecast

The GUTS-package can be applied to forecast survival. Forecasting is demonstrated for one made-up experimental setting.

Setup guts object and forecast

Values to be specified are:

We assume three pulsed applications exactly at time steps 0, 10 and 20. We assume that the substance would dissipate over time. Therefore, to monitor the dissipation, the concentration is measured at several time steps. The initial population size is set to 100 individuals. Projections are made for 26 time steps.

We forecast survival probabilities and damage over time for each dose concentration and each parameter set in the thinned posterior. This procedure takes into account the uncertainties in parameter estimates.

Analyse projections

The plots show median and 95%-CI over time of the (i) measured external concentration (red) and damage (black), (ii) survival probability and (iii) daily hazard.

The time series demonstrates an accumulative effect: The second and third exposure pulse exert a higher hazard than the first exposure pulse due to accumulating damage.

Literature

Albert, C., Vogel, S., and Ashauer, R. (2016). Computationally efficient implementation of a novel algorithm for the General Unified Threshold Model of Survival (GUTS). PLOS Computational Biology, 12(6), e1004978. doi: 10.1371/journal.pcbi.1004978.

Jager, T., Albert, C., Preuss, T., and Ashauer, R. (2011). General Unified Threshold Model of Survival - a toxicokinetic toxicodynamic framework for ecotoxicology. Environmental Science & Technology, 45(7), 2529–2540, doi: 10.1021/es103092a.