Skip to contents

Partially steady-state dosing data class (R6 class)

Partially steady-state dosing data class (R6 class)

Super class

bmstate::DosingData -> PSSDosingData

Public fields

doses

Dose amounts (list with length equal to number of subjects). Corresponds to doses after the steady state.

times

Dose times (list with length equal to number of subjects). Corresponds to doses after the steady state. First time here is the end of steady-state assumption time range.

dose_ss

Steady-state dose.

tau_ss

Steady-state dosing interval.

Methods

Inherited methods


Method new()

Initialize

Usage

PSSDosingData$new(subject_ids, doses, times, dose_ss = NULL, tau_ss = 24)

Arguments

subject_ids

A character vector

doses

Dose amounts (list with length equal to number of subjects). Corresponds to doses after the steady state.

times

Dose times (list with length equal to number of subjects). Corresponds to doses after the steady state. First time here is the end of steady-state assumption time range.

dose_ss

Steady-state dose.

tau_ss

Steady-state dosing interval.


Method as_data_frame()

As data frame

Usage

PSSDosingData$as_data_frame()


Method simulate_pk()

Simulate PK dynamics

Usage

PSSDosingData$simulate_pk(t, theta, MAX_CONC, skip_assert = FALSE)

Arguments

t

A vector of output times for each subject (a list).

theta

A matrix of parameters.

MAX_CONC

concentration upper bound

skip_assert

Skip most assertions and call exposed Stan directly, assuming that it exists?

Returns

a data.frame


Method plot()

Plot dosing (and PK) data

Usage

PSSDosingData$plot(df_fit = NULL, subject_df = NULL, max_num_subjects = 12)

Arguments

df_fit

Fit data frame. Uses columns val, lower and upper.

subject_df

Subject data frame.

max_num_subjects

Max number of subjects to plot.


Method filter()

Filter based on subject id, creates new object

Usage

PSSDosingData$filter(subject_ids_keep = NULL)

Arguments

subject_ids_keep

Subject ids to keep


Method clone()

The objects of this class are cloneable with this method.

Usage

PSSDosingData$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.