Contains observed vs. predicted data after a run, typically a field in a PM_result
Details
The PM_op object is both a data field within a PM_result, and itself an R6 object comprising data fields and associated methods suitable for analysis and plotting of observed vs. population or individual predicted outputs.
Because PM_op objects are automatically added to the PM_result at the end of a successful run, it is generally not necessary for users to generate PM_op objects themselves.
The main results are contained in the $data field,
and it is this field which is passed to the $plot and $summary methods.
You can use this $data field for custom manipulations, e.g. trough <- run1$op$data %>% filter(time == 24).
If you are unfamiliar with the %>% pipe function, please type help("%>%", "magrittr")
into the R console and look online for instructions/tutorials in tidyverse, a
powerful approach to data manipulation upon which Pmetrics is built.
To provide a more traditional experience in R,
the $data field is also separated by columns into the other data fields within the R6 object,
e.g. id or time. This
allows you to access them in an S3 way, e.g. run1$op$time if run1 is a
PM_result object.
Public fields
idsubject identification
timeobservation time in relative units, usually hours
obsobservation
censcensoring information: "none" for observed, "bloq" for below limit of quantification, "aloq" for above limit of quantification
predprediction
pred.typePopulation predictions based on Bayesian prior parameter value distribution, or individual predictions based on Bayesian posterior parameter value distributions
icenPredictions based on mean or median of Bayesian
pred.typeparameter valuesouteqoutput equation number
blockdosing block number for each subject, as defined by dose resets (evid=4).
obsSDstandard deviation of the observation based on the assay error polynomial
dprediction error,
pred-obsdssquared prediction error
wdweighted prediction error, which is the prediction error divided by the
obsSDwdsweighted squared prediction error
dataA data frame of class PM_op_data combining all the above fields as its columns
Methods
Method new()
Create new object populated with observed vs. predicted data
Usage
PM_op$new(PMdata = NULL, path = ".", ...)Method summary()
Summary method
Arguments
...Arguments passed to summary.PM_op
Details
See summary.PM_op.
Method auc()
Calculate AUC
Arguments
...Arguments passed to makeAUC
dataThe object to use for AUC calculation
Details
See makeAUC