Create a time series of decline data

one_box(x, ini, ..., t_end = 100, res = 0.01)
# S3 method for numeric
one_box(x, ini = 1, ..., t_end = 100, res = 0.01)
# S3 method for character
one_box(x, ini = 1, parms, ..., t_end = 100, res = 0.01)
# S3 method for mkinfit
one_box(x, ini = "model", ..., t_end = 100, res = 0.01)

## Arguments

x |
When numeric, this is the half-life to be used for an exponential
decline. When a character string specifying a parent decline model is given
e.g. `FOMC` , `parms` must contain the corresponding parameters.
If x is an `mkinfit` object, the decline is calculated from this
object. |

ini |
The initial amount. If x is an `mkinfit` object, and
ini is 'model', the fitted initial concentrations are used. Otherwise, ini
must be numeric. If it has length one, it is used for the parent and
initial values of metabolites are zero, otherwise, it must give values for
all observed variables. |

... |
Further arguments passed to methods |

t_end |
End of the time series |

res |
Resolution of the time series |

parms |
A named numeric vector containing the model parameters |

## Value

An object of class `one_box`

, inheriting from `ts`

.

## Examples

#> Successfully compiled differential equation model from auto-generated C code.

#> Warning: Observations with value of zero were removed from the data