BLLU MANUSCRIPT — SUPPLEMENTARY NOTE S5 AND REPRODUCIBILITY FILES

Contents
--------
01_BLL_PMF_and_moments.R
    Numerical evaluation of the BLL probability mass function by integration
    against the LLUD mixing density; normalization, mean, and variance checks.

02_BLLU_limit_cases_and_checks.R
    Numerical evaluation of the BLLU PMF and CDF using the LLU quantile
    representation; limiting-regime illustrations and numerical checks.

07_Empirical_GOF_and_MC_calibration.R
    Reproduction of the empirical discrete Cramer–von Mises and
    Anderson–Darling statistics and their Monte Carlo-calibrated p-values.

BLLU_Application_Data.xlsx
    Original application data, including raw observations and frequency tables
    for the SO2 and traffic-accident applications.

Execution
---------
Place the R scripts and the Excel workbook in the same working directory.
Run the scripts in the order 01, 02, and 07. Script 07 requires the readxl
package. The script prints sessionInfo() at completion so that the R version
and installed package versions can be recorded for the computational
environment in which it is executed.

Random-number generation and numerical settings
------------------------------------------------
The Monte Carlo goodness-of-fit script uses set.seed(123), B = 50,000
multinomial replications per model–dataset combination, and K = 2,000
midpoint quadrature points for the BLLU PMF. The fitted model parameters are
held fixed in the Monte Carlo calibration. The Monte Carlo p-values use the
(+1)/(B+1) correction, and Monte Carlo standard errors are reported.

Derivative calculations
-----------------------
The supplied PMF routines evaluate the probabilities by numerical integration
or midpoint quadrature. No analytical PMF derivatives are used in these
calculations. Where numerical optimization is required for parameter
estimation, the estimation procedures and settings are documented in
Supplementary Note S4; R's optim routine can obtain numerical derivatives
when an analytic gradient is not supplied.

Important
---------
The first script retains the filename terminology BLL used in the original
script. It is included as the numerical PMF/moment illustration accompanying
the BLLU material. The three scripts are supplementary computational
materials and do not replace the estimation and simulation scripts already
documented in Supplementary Notes S3 and S4.
