Package: BetaDanish
Type: Package
Title: The Beta-Danish Distribution for Lifetime Data Analysis
Version: 1.0.0
Date: 2026-11-13
Authors@R: c(
    person("Bilal", "Ahmad", email = "bilalahmad.imcbh9@gmail.com",
           role = c("aut", "cre")),
    person("Muhammad Yameen", "Danish", email = "yameen.danish@aiou.edu.pk",
           role = "aut")
    )
Description: Implements the four-parameter Beta-Danish distribution and its
    three-parameter Exponentiated Danish submodel for survival, reliability
    and lifetime data analysis, following Ahmad (2026), "Modeling Diverse
    Survival Patterns: The Development and Characterization of a New
    Four-Parameter Lifetime Distribution", PhD thesis, Allama Iqbal Open
    University. Density, distribution, quantile, survival, hazard and random
    generation functions are evaluated so as to retain accuracy in both
    tails; the upper tail is heavy, with a regularly varying survival
    function. Estimation covers maximum likelihood for complete and
    right-censored samples by a two-stage multi-start search that guarantees
    nesting of the submodel, with fits on the edge of the parameter space
    reported as such, ridge-penalized fitting for weakly identified regimes,
    a grouped likelihood for times recorded on a coarse grid, and Bayesian
    sampling by adaptive multi-chain Metropolis with convergence checks.
    Goodness of fit uses Kolmogorov-Smirnov, Cramer-von Mises and
    Anderson-Darling statistics computed on one scale for complete and
    censored samples. Inference provides log-scale Wald and profile
    likelihood intervals, together with a reparameterization in terms of the
    identified composite of the two shape parameters. Structural properties
    include raw, incomplete and conditional moments with their existence
    conditions, Shannon, Renyi and Tsallis entropies, mean residual life,
    mean deviations, Lorenz and Bonferroni curves, probability weighted
    moments, order statistics, stress-strength reliability, hazard shape
    classification, the tail index and the Kullback-Leibler separation from
    the submodel. Regression modules cover accelerated failure time models,
    mixture and promotion-time cure models with three- or four-parameter
    kernels, and competing risks with Aalen-Johansen comparison and Gray's
    test. Analyses can be run directly from a delimited text file or
    spreadsheet.
URL: https://bilal-aiou.github.io/BetaDanish/,
        https://github.com/bilal-aiou/BetaDanish
BugReports: https://github.com/bilal-aiou/BetaDanish/issues
License: GPL-3
Encoding: UTF-8
LazyData: true
Imports: grDevices, maxLik, survival, stats, graphics, utils, tools
Suggests: readxl, flexsurv, testthat (>= 3.0.0), knitr, rmarkdown,
        cmprsk, coda, MCMCpack
VignetteBuilder: knitr
Config/testthat/edition: 3
Depends: R (>= 3.5)
Config/roxygen2/version: 8.0.0
Language: en-US
NeedsCompilation: no
Packaged: 2026-11-13 06:46:29 UTC; hp
Author: Bilal Ahmad [aut, cre],
  Muhammad Yameen Danish [aut]
Maintainer: Bilal Ahmad <bilalahmad.imcbh9@gmail.com>
Repository: CRAN
Date/Publication: 2026-11-13 09:11:08 UTC
