Drug Demand Forecasting

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)).


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("drugDemand")

0.1.3 by Kaifeng Lu, 3 years ago


Browse source code at https://github.com/cran/drugDemand


Authors: Kaifeng Lu [aut, cre]


Documentation:   PDF Manual  


GPL (>= 2) license


Imports Rcpp, dplyr, rlang, purrr, stringr, plotly, survival, mvtnorm, erify, stats, MASS, nlme, L1pack, eventPred, parallel, foreach, doParallel, doRNG

Linking to Rcpp


See at CRAN