| getsigmas | R Documentation |
Performs log-linear regression on the elimination phase of a single individual's or one group's pharmacokinetic concentration–time data to estimate additive and proportional residual standard deviations.
getsigmas(group_df, nlastpoints = 3)
group_df |
A data frame for a single group (e.g., one subject or dose), containing columns: EVID (event ID), DV (observed concentration), TIME (time after dose), and routeobs (administration route). |
nlastpoints |
Integer specifying the number of terminal data points used for regression. |
Residuals are computed from individual-predicted concentrations (IPRED) and observed concentrations (DV) using the following definitions:
\sigma_{add} = \sqrt{Var(C_{obs} - C_{pred})}
\sigma_{prop} = \sqrt{Var\left(\frac{C_{obs}}{C_{pred}} - 1\right)}
where C_{obs} is the observed concentration and C_{pred} is the
model-predicted concentration obtained by back-transformation of the
log-linear regression. The additive residual standard deviation
(\sigma_{add}) and proportional residual standard deviation
(\sigma_{prop}) are calculated per individual.
A tibble with the following columns:
intercept: Intercept of the log-linear regression line
slope: Estimate of the terminal elimination rate constant
residual_sd_additive: Standard deviation of additive residuals
residual_sd_proportional: Standard deviation of proportional residuals
Zhonghui Huang
dat <- Bolus_1CPT
dat <- processData(dat)$dat
getsigmas(dat[dat$ID == 1 & dat$dose_number == 1 & dat$resetflag == 1 &
dat$EVID == 0, ])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.