Description Usage Arguments Value Examples

Derive secondary PK parameters.

1 |

`x` |
A object of class |

`From` |
A vector of interval start times. The defaults is the times of the doses. |

`To` |
A vector of interval end times. The defaults is the time of the next dose, or last observation time. |

`include.dose.times` |
Should dose times (and end of infusion times) be considered in addition to the simulation times? |

A `data.frame`

with one row for each time interval and with the
following columns:

`From`

The time of the start of the interval. Can differ from the specified start time because it always corresponds to an actual data point.

`To`

The time of the end of the interval. Can differ from the specified end time because it always corresponds to an actual data point.

`N`

The number of distinct data points in the interval used to derive

`AUC`

,`Cmax`

, etc.`Ctrough`

Concentration at the time of dose (i.e. just prior to the dose). Only present if the start of the interval corresponds to a dose time.

`Cmin`

Minimum concentration over the interval.

`Tmin`

Time of the minimum concentration over the interval.

`Cmax`

Maximum concentration over the interval.

`Tmax`

Time of the maximum concentration over the interval.

`Cave`

Average concentration over the interval (calculated by the trapezoid rule).

`AUC`

Area under the concentration-time curve over the interval (calculated by the trapezoid rule).

1 2 3 4 5 6 7 8 9 10 11 | ```
t.obs <- seq(0, 24*4, 0.1)
y <- pkprofile(t.obs, cl=0.25, vc=5, ka=1, dose=list(t.dose=0, amt=1, addl=6, ii=12))
secondary(y)
secondary(y, 0, 48)
secondary(y, 0, Inf)
sum(secondary(y)$AUC) # Same as above
plot(y)
with(secondary(y), points(Tmax, Cmax, pch=19, col="blue"))
with(secondary(y), points(Tmin, Cmin, pch=19, col="red"))
with(secondary(y), points(From, Ctrough, pch=19, col="green"))
with(secondary(y), points(From + 6, Cave, pch=19, col="purple", cex=2))
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.