
Summarize PKNCA results
# S3 method for PKNCAresults
summary(
object,
...,
drop_group = object$data$conc$columns$subject,
drop_param = character(),
summarize_n = NA,
not_requested = ".",
not_calculated = "NC",
drop.group = deprecated(),
summarize.n.per.group = deprecated(),
not.requested.string = deprecated(),
not.calculated.string = deprecated(),
pretty_names = NULL
)
A data frame of NCA parameter results summarized according to the summarization settings.
The results to summarize
Ignored.
Which group(s) should be dropped from the formula?
Which parameters should be excluded from the summary?
Should a column for N
be added (TRUE
or FALSE
)?
NA
means to automatically detect adding N
if the data has a subject
column indicated. Note that N
is maximum number of parameter results for
any parameter; if no parameters are requested for a group, then N
will be
NA
.
A character string to use when a parameter summary was not requested for a parameter within an interval.
A character string to use when a parameter summary was
requested, but the point estimate AND spread calculations (if applicable)
returned NA
.
Deprecated use drop_group
, not_requested
, not_calculated
, or
summarize_n
, instead
Should pretty names (easier to understand in a report) be
used? TRUE
is yes, FALSE
is no, and NULL
is yes if units are used
and no if units are not used.
Excluded results will not be included in the summary.
PKNCA.set.summary()
, print.summary_PKNCAresults()
conc_obj <- PKNCAconc(as.data.frame(datasets::Theoph), conc ~ Time | Subject)
d_dose <-
unique(datasets::Theoph[
datasets::Theoph$Time == 0,
c("Dose", "Time", "Subject")
])
dose_obj <- PKNCAdose(d_dose, Dose ~ Time | Subject)
data_obj_automatic <- PKNCAdata(conc_obj, dose_obj)
results_obj_automatic <- pk.nca(data_obj_automatic)
# To get standard results run summary
summary(results_obj_automatic)
# To enable numeric conversion and extraction, do not give a spread function
# and subsequently run as.numeric on the result columns.
PKNCA.set.summary(
name = c("auclast", "cmax", "half.life", "aucinf.obs"),
point = business.geomean,
description = "geometric mean"
)
PKNCA.set.summary(
name = c("tmax"),
point = business.median,
description = "median"
)
summary(results_obj_automatic, not_requested = "NA")
Run the code above in your browser using DataLab