Skip to content

drugDemand

0.1.3

Drug Demand Forecasting

0packages depend
2.5Kdownloads / year
test coverage
12/13checks pass

Overview

About
Maintained by Kaifeng LuFirst published 2023-10-234 releasesCRAN page ↗

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) doi:10.18637/jss.v081.i12). The number of skipped visits is modeled using Poisson, zero-inflated Poisson, or negative binomial distributions (Zeileis, Kleiber & Jackman (2008) doi:10.18637/jss.v027.i08). 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)).

Install

Health

CRAN checks
1NOTE12OK
Failing flavors
  • NOTE r-devel-linux-x86_64-debian-gcc
Slowest check: 4.2 min · r-oldrel-windows-x86_64
Code health
None
Tests · ratio 0.00
not tracked
Coverage
100%
Documentation · exports
18
Dependencies · direct
Check history
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-06-09
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-06-08
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-04-22
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-04-18
    13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
Show 1 earlier snapshots
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMENoVignettesNopkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
63%
Documented parameters
100%
Return-value docs
100%
References docs
4%

Downloads

2.5K
CRAN downloads in the past year
Rank #16,191 · ~7/day · ~209/mo
Daily download trend is not available in this view yet.
22830 days
65990 days
2.5K1 year
Compare downloads with other packages →
Also on393 r2u

Dependencies

Declared dependencies
15 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.5.0
LinkingTo (1)
Suggests (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

Datasets

People & History

People (1)
Maintainer (1)
Author, Maintainer
Authors (1)
Author, Maintainer
Package Timeline

4 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 0.1.3Latest
    2024-02-28 · current release · diff ↗
  • 0.1.2
    2023-12-21 · diff ↗
  • 0.1.1
    2023-10-31 · diff ↗
  • 0.1.0
    2023-10-23
  • R
    R 4.3.0 released · 2023-04-21

Package metadata

First published
2023-10-23
Total releases
4 / 3 yrs
License
GPL (>= 2) OSI
Minimum R
≥ 3.5.0
Bundled data
37 KB / 7 files
Download size
76 KB
Installed size
not tracked yet
With dependencies
not tracked yet
Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy