Skip to contents

Anthropomorphic equations

calc_bsa()
Calculate body surface area
calc_ffm()
Calculate fat-free mass
calc_bmi()
Calculate BMI
calc_ibw() ibw_standard() ibw_devine()
Calculate ideal body weight in kg for children and adults
calc_lbw()
Calculate lean body weight
calc_abw()
Calculate adjusted body weight (ABW)
calc_dosing_weight()
Calculate commonly used "dosing weight"
calc_baseline_scr()
Calculate baseline sCr
pct_weight_for_age()
Percentile weight for age for children
pct_height_for_age()
Percentile height for age for children
pct_bmi_for_age()
Percentile BMI for age for children

Clinical chemistry

calc_egfr()
Calculate eGFR
calc_egfr_cystatin()
Calculate eGFR based on Cystatin C measurements
calc_kgfr()
Calculate kinetic GFR
calc_creat()
Estimate serum creatinine
calc_creat_neo()
Estimate serum creatinine in neonates
calc_aki_stage()
Calculate AKI stage
calc_neutropenia_grade()
Calculate neutropenia grade from ANC

Conversions

kg2lbs()
Convert kg to lbs
lbs2kg()
Convert lbs to kg
kg2oz()
Convert kg to oz
oz2kg()
Convert oz to kg
weight2kg()
Convert any weight unit to kg
cm2inch()
Convert cm to inch
inch2cm()
Convert inch to cm
conc2mol()
Convert concentration to molar
mol2conc()
Convert molar to concentration
absolute2relative_bsa()
Convert quantity expressed in absolute units relative to normalized BSA
relative2absolute_bsa()
Convert quantity expressed relative to BSA to absolute units
convert_flow_unit()
Convert flow (e.g. clearance) from / to units
convert_albumin_unit()
Convert albumin from / to units
convert_creat_assay()
Convert serum creatinine from various assays to Jaffe
convert_creat_unit()
Convert creatinine to different unit
convert_bilirubin_unit()
Convert bilirubin from / to units

PK compartmental equations

Functions to simulate concentrations for linear PK models.

pk_1cmt_inf()
Concentration predictions for 1-compartmental PK model after single or multiple bolus doses
pk_1cmt_inf_ss()
Concentration predictions for 2-compartmental PK model with infusion dosing at steady state
pk_1cmt_inf_cmin_ss()
Cmin (trough) for linear 1-compartment PK model at steady state
pk_1cmt_inf_cmax_ss()
Cmax for linear 1-compartment PK model at steady state
pk_2cmt_inf()
Concentration predictions for 2-compartmental PK model, single or multiple infusions
pk_2cmt_inf_ss()
Concentration predictions for 2-compartmental PK model with infusion dosing at steady state
pk_2cmt_inf_cmin_ss()
Cmin (trough) for 2-compartmental PK model, bolus dosing at steady state
pk_2cmt_inf_cmax_ss()
Cmax (trough) for 2-compartmental PK model, bolus dosing at steady state
pk_1cmt_bolus()
Concentration predictions for 1-compartmental PK model after single or multiple bolus doses
pk_1cmt_bolus_ss()
Concentration predictions for 1-compartmental PK model with bolus dosing at steady state
pk_1cmt_bolus_cmin_ss()
Cmin (trough) for linear 1-compartment PK model at steady state, bolus dosing
pk_1cmt_bolus_cmax_ss()
Cmax for linear 1-compartment PK model at steady state, bolus dosing
pk_1cmt_t12()
Calculate terminal half-life for 1-compartment model
pk_1cmt_oral()
Concentration predictions for 1-compartmental oral PK model after single or multiple bolus doses
pk_2cmt_bolus()
Concentration predictions for 2-compartmental PK model, single or multiple bolus doses
pk_2cmt_bolus_ss()
Concentration predictions for 2-compartmental PK model, bolus dosing at steady state
pk_2cmt_bolus_cmin_ss()
Cmin (trough) for 2-compartmental PK model, bolus dosing at steady state
pk_2cmt_bolus_cmax_ss()
Cmax for 2-compartmental PK model, bolus dosing at steady state
pk_2cmt_t12()
Calculate half-life(s) for 2-compartment model
pk_2cmt_t12_interval()
Calculate average half-life for 2-compartment model during a specific interval

PK steady state equations

accumulation_ratio()
Calculate accumulation ratio This is the ratio of drug concentration or AUC at steady state over concentrations after single dose
fraction_of_ss()
Calculate fraction of steady state at particular time after start of dosing
time_to_ss()
Time to steady state In either time units or number of doses

Dose/TDM calculations

Functions to calculate the dose expected to achieve a specific target exposure.

pk_1cmt_inf_dose_from_cmin()
Calculate dose to achieve steady state trough for 1-compartmental PK model with infusion dosing at steady state
pk_1cmt_bolus_dose_from_cmin()
Calculate dose to achieve steady state trough for 1-compartmental PK model bolus dosing at steady state
pk_2cmt_inf_dose_from_cmin()
Calculate dose to achieve steady state trough for 2-compartmental PK model with infusion dosing at steady state
pk_2cmt_bolus_dose_from_cmin()
Calculate dose to achieve steady state trough for 2-compartmental PK model bolus dosing at steady state
pk_1cmt_inf_dose_from_cmax()
Calculate dose to achieve steady state Cmax for 1-compartmental PK model with infusion dosing at steady state
pk_1cmt_bolus_dose_from_cmax()
Calculate dose to achieve steady state Cmax for 1-compartmental PK model bolus dosing at steady state
pk_2cmt_inf_dose_from_cmax()
Calculate dose to achieve steady state Cmax for 2-compartmental PK model with infusion dosing at steady state
pk_2cmt_bolus_dose_from_cmax()
Calculate dose to achieve steady state Cmax for 2-compartmental PK model bolus dosing at steady state
pk_1cmt_inf_dose_for_range()
Calculate dose based on a given AUC24, Cmax, and Cmin, assuming 1-compartment model
dose2auc()
Convert dose to expected AUCinf or AUCt for 1 compartment linear PK model
auc2dose()
Convert AUCtau or AUCt to dose (for 1-compartment linear PK model)

Miscellaneous functions

nca()
Perform an NCA based on a NONMEM-style dataset
egfr_cov_reqs()
Returns parameters needed to calculate eGFR according to the method specified.
check_covs_available()
Checks whether required covariates for eGFR calculations are present
calc_carboplatin_calvert()
Calvert equation for carboplatin
calc_kel_single_tdm()
Calculate elimination rate when given a single TDM sample
calc_kel_double_tdm()
Calculate elimination rate when given two TDM samples
calc_t12()
Calculate half-life based on two points
calc_amts_for_conc()
Calculate the amounts in all compartments in a compartmental PK system based on a given concentration in the central compartment, and assuming steady state.
find_nearest_dose()
Generic function to calculate the dose nearest to a specific dose unit increment
find_nearest_interval()
Generic function to calculate the interval nearest to a possible dosing interval
read_who_table()
Read WHO growth tables
valid_units()
Valid units
add_ruv()
Add residual variability to data