Tables

using NCA, PharmaDatasets

df = dataset("po_sad_1")
results = run_nca(read_nca_pumas(df; concentration = :dv, dose = :amt))

NCA.geomean_cv_table(
    results,
    [:auclast, :cmax];
    variable_names = Dict(:auclast => "AUC Last (ng/L*mg)", :dose => "Dose (mg)"),
)
Dose (mg)
30
(n=6)
60
(n=6)
90
(n=6)
AUC Last (ng/L*mg)
Geometric Mean 7000 14762 30035
CV% 56.1 28.6 40.3
cmax
Geometric Mean 324 590 955
CV% 76.2 25.2 59.6
NCA.geomean_cv_table — Function
geomean_cv_table(nca, variables; variable_names = Dict())

Build a SummaryTables.Table of geometric mean and CV% for each of variables in the run_nca result nca, grouped by dose.

Pass variable_names to label a column with something other than the variable's own name. The :dose key labels the grouping column.