wsgnstat: The Wrapped Two-Piece Exponential Power Distribution

The two-piece exponential power distribution on the line (Fernández and Steel, 1998, <doi:10.1080/01621459.1998.10474117>) and its wrapped version on the circle, treated as a uniform scale mixture with generalised gamma mixing (Ehlers, 2015, <doi:10.1080/01966324.2014.969460>). Given the mixing variable, the variable is uniform on an interval that contains the location. The package name follows the authors' earlier usage, the wrapped skew generalised normal distribution. Density, distribution and quantile functions, random generation from the mixture, and the characteristic function and trigonometric moments for every shape parameter, evaluated on a rotated path of integration, with the convergent series as a check. The wrapped density adds an Euler-Maclaurin tail to the image sum, so small shapes are covered. Maximum likelihood fitting of the four-parameter wrapped distribution under a lower bound on the shape, over both the regular and the spike branch, with the location searched over the observations when the shape is at most one; the grouped likelihood for rounded data; profile likelihoods; and standard errors from the expected information or a parametric bootstrap. A pure-C back-end does the numerics and also backs the 'Python' package 'wsgnstat'.

Version: 0.1.1
Depends: R (≥ 3.5.0)
Imports: stats
Suggests: circular, knitr, rmarkdown, testthat (≥ 3.0.0)
Published: 2026-11-17
DOI: 10.32614/CRAN.package.wsgnstat
Author: M. Theodor Loots ORCID iD [aut, cre, cph]
Maintainer: M. Theodor Loots <theo.loots at gmail.com>
BugReports: https://github.com/mtloots/wsgnstat/issues
License: GPL-3
URL: https://github.com/mtloots/wsgnstat
NeedsCompilation: yes
Language: en-GB
Citation: wsgnstat citation info
Materials: README, NEWS
CRAN checks: wsgnstat results

Documentation:

Reference manual: wsgnstat.html , wsgnstat.pdf
Vignettes: wsgnstat: the wrapped two-piece exponential power distribution (source)

Downloads:

Package source: wsgnstat_0.1.1.tar.gz
Windows binaries: r-devel: wsgnstat_0.1.0.zip, r-release: wsgnstat_0.1.0.zip, r-oldrel: wsgnstat_0.1.0.zip
macOS binaries: r-release (arm64): wsgnstat_0.1.1.tgz, r-oldrel (arm64): wsgnstat_0.1.1.tgz, r-release (x86_64): wsgnstat_0.1.1.tgz, r-oldrel (x86_64): wsgnstat_0.1.1.tgz
Old sources: wsgnstat archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=wsgnstat to link to this page.