BetaDanish - The Beta-Danish Distribution for Lifetime Data Analysis
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.