par_est_FOMT {chemdeg}R Documentation

First-Order Multi-Target parameter starting values

Description

par_est_FOMT estimates the starting values of the parameters of the first-order multi-target model from a data-set.

Usage

par_est_FOMT(x, y = NULL)

Arguments

x

A data-frame with time and concentration in the first and second columns,respectively. Alternatively, it could be an array of time and y an array of concentrations.

y

Optional, an array of concentrations. To be inserted only if x is an array.

Value

The function returns an array with the suggested initial values of parameters.

See Also

FOMT(), FOMTm()

Examples

t <- seq(0, 30, by = 6)
k <- 0.3
n <- 40
set.seed(100)
y <- FOMTm(t, k, n) * (1 + rnorm(length(t), 0, 0.05))

nlsFOMT <- nls(y ~ FOMTm(t, k, n),
  data = list(y = y, t = t),
  start = par_est_FOMT(t, y)
)
summary(nlsFOMT)

[Package chemdeg version 0.1.4 Index]