f_dose_observed {drugDemand}R Documentation

Observed Drug Dispensing Data Summary

Description

Provides an overview of the observed drug dispensing data, including the summary of cumulative dispensed doses, bar chart of the gap time between randomization and the first drug dispensing visit, the gap time between two consecutive drug dispensing visits, and the dispensed doses at drug dispensing visits by drug.

Usage

f_dose_observed(df = NULL, visitview = NULL, showplot = TRUE)

Arguments

df

A data frame for subject-level enrollment and event data, including the following variables: trialsdt, usubjid, randdt, treatment, treatment_description, time, event, dropout, and cutoffdt.

visitview

A data frame containing the observed drug dispensing data, including the following variables: usubjid, visit, date, drug, drug_name, kit, kit_name, kit_number, and dispensed_quantity.

showplot

A Boolean variable that controls whether or not to show the drug dispensing model fit and drug demand prediction plots. It defaults to TRUE.

Value

A list with the following components:

Author(s)

Kaifeng Lu, kaifenglu@gmail.com

Examples


observed <- f_dose_observed(df = df2, visitview = visitview2)


[Package drugDemand version 0.1.3 Index]