Learn R Programming

morseTKTD (version 0.1.3)

SurvIT_var: Internal predict function

Description

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

Usage

SurvIT_var(
  Cw,
  time,
  kd,
  hb,
  alpha,
  beta,
  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 vector of external concentration

time

A vector of time

kd

a vector of parameter

hb

a vector of parameter

alpha

a vector of parameter

beta

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.