Learn R Programming

drugDemand (version 0.1.3)

Drug Demand Forecasting

Description

Performs drug demand forecasting by modeling drug dispensing data while taking into account predicted enrollment and treatment discontinuation dates. The gap time between randomization and the first drug dispensing visit is modeled using interval-censored exponential, Weibull, log-logistic, or log-normal distributions (Anderson-Bergman (2017) ). The number of skipped visits is modeled using Poisson, zero-inflated Poisson, or negative binomial distributions (Zeileis, Kleiber & Jackman (2008) ). The gap time between two consecutive drug dispensing visits given the number of skipped visits is modeled using linear regression based on least squares or least absolute deviations (Birkes & Dodge (1993, ISBN:0-471-56881-3)). The number of dispensed doses is modeled using linear or linear mixed-effects models (McCulloch & Searle (2001, ISBN:0-471-19364-X)).

Copy Link

Version

Install

install.packages('drugDemand')

Monthly Downloads

183

Version

0.1.3

License

GPL (>= 2)

Maintainer

Kaifeng Lu

Last Published

February 28th, 2024

Functions in drugDemand (0.1.3)

f_dose_new_cpp

Dosing Date Imputation for New Patients
f_dose_draw

Drug Dispensing Data Simulation
f_dispensing_models

Drug Dispensing Model Fitting
df2

The subject-level enrollment and event data after enrollment completion.
dosing_schedule_df

The dosing schedule data frame.
df1

The subject-level enrollment and event data before enrollment completion.
f_fit_di

Model Fitting for Dispensed Doses
f_ongoing_new

Observed Dosing for Ongoing and New Subjects
f_dose_pp

Drug Demand Per Protocol
kit_description_df

The kit description data frame.
f_fit_t0

Model Fitting for Dispensing Delay After Randomization
f_fit_ti

Model Fitting for Gap Times
f_fit_ki

Model Fitting for Number of Skipped Visits
f_drug_demand

Drug Demand Forecasting
f_dose_observed

Observed Drug Dispensing Data Summary
f_dose_ongoing_cpp

Dosing Date Imputation for Ongoing Patients
rdirichlet

Random Number Generator for the Dirichlet Distribution
visitview2

The observed subject drug dispensing data after enrollment completion.
treatment_by_drug_df

The data frame indicating the treatments associated with each drug.
visitview1

The observed subject drug dispensing data before enrollment completion.
f_dose_draw_t_1

Drug Dispensing Visit Dates Simulation for One Iteration
drugDemand-package

Drug Demand Forecasting
f_cum_dose

Cumulative Dose
f_dose_draw_1

Drug Dispensing Data Simulation for One Iteration