| secondary | R Documentation | 
Derive secondary PK parameters.
secondary(x, From = NULL, To = NULL, include.dose.times = T)
| 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:
FromThe time of the start of the interval. Can differ from the specified start time because it always corresponds to an actual data point.
ToThe time of the end of the interval. Can differ from the specified end time because it always corresponds to an actual data point.
NThe number of distinct data points in the interval used to
derive AUC, Cmax, etc.
CtroughConcentration 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.
CminMinimum concentration over the interval.
TminTime of the minimum concentration over the interval.
CmaxMaximum concentration over the interval.
TmaxTime of the maximum concentration over the interval.
CaveAverage concentration over the interval (calculated by the trapezoid rule).
AUCArea under the concentration-time curve over the interval (calculated by the trapezoid rule).
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.