Package: wsgnstat
Type: Package
Title: The Wrapped Two-Piece Exponential Power Distribution
Version: 0.1.1
Authors@R: 
    person("M. Theodor", "Loots", email = "theo.loots@gmail.com",
           role = c("aut", "cre", "cph"), comment = c(ORCID = "0000-0001-7722-3913"))
Description: 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'.
URL: https://github.com/mtloots/wsgnstat
BugReports: https://github.com/mtloots/wsgnstat/issues
License: GPL-3
Encoding: UTF-8
Language: en-GB
Depends: R (>= 3.5.0)
Imports: stats
Suggests: circular, knitr, rmarkdown, testthat (>= 3.0.0)
VignetteBuilder: knitr
NeedsCompilation: yes
Config/testthat/edition: 3
Config/roxygen2/version: 8.0.0
Packaged: 2026-11-16 21:29:31 UTC; home
Author: M. Theodor Loots [aut, cre, cph] (ORCID:
    <https://orcid.org/0000-0001-7722-3913>)
Maintainer: M. Theodor Loots <theo.loots@gmail.com>
Repository: CRAN
Date/Publication: 2026-11-17 08:40:02 UTC
