| bin.time | R Documentation |
Bins data by time using either equal-frequency (quantile) binning or algorithmic binning methods.
bin.time(
dat,
nbins = "auto",
bin.method = c("quantile", "jenks", "kmeans", "pretty", "sd", "equal", "density")
)
dat |
A data frame containing PK data. Must include:
|
nbins |
Number of bins or "auto". If numeric with
|
bin.method |
Binning strategy (default = "quantile"). Available options are:
|
Supports quantile-based binning and other data-driven methods (jenks, kmeans, pretty, sd, equal, density), with optional automatic bin count selection.
A list containing summary results of the time-concentration binning process.
Zhonghui Huang
vpc::auto_bin
dat <- Bolus_1CPT
dat <- nmpkconvert(dat)
dat <- calculate_tad(dat)
dat$DVstd <- dat$DV / dat$dose
bin.time(dat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.