Skip to contents

[Stable]

Contains the population predictions at short intervals specified as an argument to the run method of PM_fit. Default is every 12 minutes.

Details

Contains the results of makePop, which is a data frame with population predicted outputs for all subjects. To provide a more traditional experience in R, the data frame is separated by columns into fields, e.g. id or time. This allows you to access them in an S3 way, e.g. run1$pop$time if run1 is a PM_result object.

However, if you wish to manipulate the entire data frame, use the data field, e.g. trough <- run1$pop$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.

Author

Michael Neely, Julian Otalvaro

Public fields

id

Subject id

time

Time of predictions in decimal hours

icen

Prediction based on mean or median of Bayesian posterior parameter distribution

outeq

Output equation number

pred

Predicted output for each outeq

block

Observation blocks within subjects as defined by EVID=4 dosing events

data

A data frame combining all the above fields as its columns

Methods


Method new()

Create new object populated with population predicted data at regular, frequent intervals

Usage

PM_pop$new(pop)

Arguments

pop

The parsed output from makePop.

Details

Creation of new PM_pop object is automatic and not generally necessary for the user to do.


Method auc()

Calculate AUC

Usage

PM_pop$auc(...)

Arguments

...

Arguments passed to makeAUC

data

The object to use for AUC calculation

Details

See makeAUC


Method clone()

The objects of this class are cloneable with this method.

Usage

PM_pop$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.