Calculation of time weighted average concentrations with mkin

Since version 0.9.45.1 of the 'mkin' package, a function for calculating
time weighted average concentrations for decline kinetics (i.e. only
for the compound applied in the experiment) is included. Strictly
speaking, they are maximum moving window time weighted average concentrations,
i.e. the maximum time weighted average concentration that can be found
when moving a time window of a specified width over the decline curve.

Time weighted average concentrations for the SFO, FOMC and the DFOMP model are
calculated using the formulas given in the FOCUS kinetics guidance

DFOP:

Often, the ratio between the time weighted average concentration $c_\textrm{twa}$
and the initial concentration $c_0$

$$f_\textrm{twa} = \frac{c_\textrm{twa}}{c_0}$$

is needed. This can be calculated from the fitted initial concentration $c_0$ and
the time weighted average concentration $c_\textrm{twa}$, or directly from
the model parameters using the following formulas:

DFOP:

Note that a method for calculating maximum moving window time weighted average
concentrations for any model fitted by 'mkinfit', and also for metabolites in
such models, can be found in the 'pfm' package, which is currently not published on
CRAN, but available from github and
documented at my website.