View source: R/class-PKNCAresults.R
summary.PKNCAresults | R Documentation |
Summarize PKNCA results
## S3 method for class 'PKNCAresults'
summary(
object,
...,
drop.group = object$data$conc$columns$subject,
summarize.n.per.group = TRUE,
not.requested.string = ".",
not.calculated.string = "NC",
pretty_names = NULL
)
object |
The results to summarize |
... |
Ignored. |
drop.group |
Which group(s) should be dropped from the formula? |
summarize.n.per.group |
Should a column for |
not.requested.string |
A character string to use when a parameter summary was not requested for a parameter within an interval. |
not.calculated.string |
A character string to use when a parameter
summary was requested, but the point estimate AND spread calculations (if
applicable) returned |
pretty_names |
Should pretty names (easier to understand in a report) be
used? |
Excluded results will not be included in the summary.
A data frame of NCA parameter results summarized according to the summarization settings.
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.string="NA")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.