Learn R Programming

morseTKTD (version 0.1.3)

SurvSD_var: Internal predict function

Description

Survival function for "SD" model with external concentration changing with time

Usage

SurvSD_var(
  Cw,
  time,
  kd,
  hb,
  z,
  kk,
  interpolate_length = NULL,
  interpolate_method = c("linear", "constant")
)

Value

A data.frame with exposure columns time and conc and the resulting probabilisty of survival in Psurv_XX column where XX refer to an MCMC iteration

Arguments

Cw

A scalar of external concentration

time

A vector of time

kd

a vector of parameter

hb

a vector of parameter

z

a vector of parameter

kk

a vector of parameter

interpolate_length

if display.time is NULL, the argument interpolate_length can be used to provide a sequence from 0 to maximum of the time of exposure in original dataset (used for fitting).

interpolate_method

The interpolation method for concentration. See package deSolve for details.