Tweedie Distribution
Overview
Provides density, distribution function, quantile function, and random generation for the Tweedie distribution under the compound Poisson-Gamma parameterisation with power parameter in (1, 2). The density is evaluated using the series expansion of Dunn and Smyth (2005) doi:10.1007/s11222-005-4070-y, implemented in C++ via 'Rcpp' and 'RcppArmadillo' for performance. A constructor compatible with the 'distributional' package is also provided for use in tidy modelling workflows.
- Implemented speedup in
dtweedie()function.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
- OK5 OK2026-07-16
Documentation
- Help pages
- 3 (1 internal)includes a package overview page
- Examples that run
- 100%1 run in a plain check
- Exported functions with examples
- 50%
- Documented parameters
- 80%
- Return-value docs
- 100%
- Help pages citing references
- 67%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 1
- Median days to close, 50 most recently updated closed PRs
- 0
Releases over time
Issues over time
Commits over time
6 development-tooling and community-health practices detected across 5 families in the upstream repository
Checks run against github.com/stefanodamato/tweediedistr on 2026-10-11.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Show all practicesHide 1 practice
Dependencies
Installing tweedieDistr adds 12 packages (7 with compiled code, 6.3 MB of source tarballs). Heaviest: Rcpp 1.8 MB, RcppArmadillo 1.0 MB, vctrs 1.0 MB.
Code & Tests
People & History
Package metadata
- First published
- 2026-07-15
- Total releases
- 3 / 1 yrs
- License
- LGPL (>= 3) OSI
- Minimum R
- ≥ 4.1.0
- Download size
- 69 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("tweedieDistr")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.