Distributions and Gradients
Overview
Provides density, distribution function, quantile function and random generation for the split normal and split-t distributions, and computes their mean, variance, skewness and kurtosis for the two distributions (Li, F, Villani, M. and Kohn, R. (2010) doi:10.1016/j.jspi.2010.04.031).
- Added
gsplitn()for split-normal CDF and log-density gradients. - Added and expanded
testthatcoverage for split-normal and split-t distributions, moments, random generation, and gradients. - Fixed split-t density and kurtosis bugs.
- Modernized package metadata and citation format.
- Kept R documentation generated from C++ roxygen comments.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-05-06
- NOTE9 OK, 5 NOTE2026-04-22
- ERROR8 OK, 5 NOTE, 1 ERROR2026-04-18
Show 1 earlier changeHide 1 earlier change
- NOTE9 OK, 5 NOTE2026-03-10
Documentation
- Help pages
- 5
- Examples that run
- 100%4 run in a plain check
- Exported functions with examples
- 80%
- Documented parameters
- not tracked
- Return-value docs
- not tracked
- Help pages citing references
- 80%
Downloads
Repository
Forks over time
Commits over time
2 development-tooling and community-health practices detected across 1 family in the upstream repository
Checks run against github.com/feng-li/dng on 2026-10-25.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Dependencies
Installing dng adds 1 package (1 with compiled code, 1.8 MB of source tarballs). Heaviest: Rcpp 1.8 MB.
Code & Tests
People & History
Previously maintained by Jiayue Zeng (0.1.0 to 0.2.1).
Pick two releases to compare their code metrics.
- 1.0.0Latest
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- RR 3.6.0 released · 2019-04-26
- 0.2.12018-06-27 · diff ↗
- 0.2.02018-06-15 · diff ↗ ·
removed 8 exports
splitt_mean, splitt_var, splitt_skewness, splitt_kurtosis, dsplitt, psplitt, qsplitt, rsplitt - RR 3.5.0 released · 2018-04-23
- 0.1.12017-11-22 · diff ↗
- 0.1.02017-09-20
- RR 3.4.0 released · 2017-04-21
Package metadata
- First published
- 2017-09-20
- Total releases
- 5 / 9 yrs
- License
- GPL (>= 2) OSI
- Minimum R
- ≥ 3.0.0
- Download size
- 88 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("dng")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.1016/j.jspi.2010.04.031.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-26, which the citation names so these numbers can be found later. More on citing and the projects behind them.