fit_growth: Fit growth parameters

fit_growthR Documentation

Fit growth parameters

Description

[Experimental]

Usage

fit_growth(x, data, ...)

## S4 method for signature 'ANY,ANY'
fit_growth(x, data, ...)

## S4 method for signature 'LemnaSetac,missing'
fit_growth(x, data, par, log_scale = TRUE, verbose = FALSE, ...)

## S4 method for signature 'LemnaSchmitt,missing'
fit_growth(x, data, par, log_scale = TRUE, verbose = FALSE, ...)

## S4 method for signature 'Magma,missing'
fit_growth(x, data, par, log_scale = TRUE, verbose = FALSE, ...)

Arguments

x

a scenario or a list of caliset objects

data

toxicological trial data to fit growth parameters to: required if x is either a scenario or the result of a fit. See Section Data for details.

...

additional arguments passed through to calibrate()

par

named vector, of parameters to fit and their starting values

log_scale

logical, if TRUE then fitting will be performed on log-transformed observations and predictions, else the data will be used as-is

verbose

logical, if TRUE then info messages are printed to the console

Value

a list

Methods (by class)

  • fit_growth(x = ANY, data = ANY): Default handler

  • fit_growth(x = LemnaSetac, data = missing): Fit growth parameters of Lemna_SETAC scenarios

  • fit_growth(x = LemnaSchmitt, data = missing): Fit growth parameters of Lemna_Schmitt scenarios

  • fit_growth(x = Magma, data = missing): Fit growth parameters of Magma scenarios

Examples

# Use experimental data from control trial ('T0') to fit growth rate
ctrl <- schmitt2013[schmitt2013$trial == "T0" ,]

# Set up a scenario, provide dummy parameter values where necessary
sc <- Lemna_Schmitt() %>%
  set_init(c(BM=0.0012)) %>%
  set_param(c(EC50=1, b=1, P_up=1))

# Run fitting routine
fit_growth(sc, data=ctrl, verbose=TRUE)

cvasi documentation built on Sept. 11, 2025, 5:11 p.m.