R/plot_doseprop.R
plot_doseprop.RdPlot a dose-proportionality assessment via power law (log-log) regression
plot_doseprop(
data,
metrics,
metric_var = "PPTESTCD",
exp_var = "PPORRES",
dose_var = "DOSE",
method = "normal",
ci = 0.95,
sigdigits = 3,
se = TRUE
)Input dataset for log-log regression.
Default expected format is output from PKNCA::pk.nca() (i.e., SDTM PP formatting)
character vector of exposure metrics in data to plot
character string of variable in data containing the values provided in metrics.
Default is "PPTESTCD".
Character string specifying the variable in data containing the exposure metric (dependent variable)
Default is "PPORRES".
Character string specifying the variable in data containing the dose (independent variable)
Default is "DOSE".
character string specifying the distribution to be used to derived the confidence interval. Options are "normal" (default) and "tdist"
confidence interval to be calculated. Options are 0.95 (default) and 0.90
number of significant digits for rounding
logical to display confidence interval around regression. Default is TRUE.
a ggplot plot object