check_fast_vs_generic: Numerical check: fast vs generic deviance log-likelihood
Description
Computes both loglik_gamlss_newdata_fast() and loglik_gamlss_newdata()
and reports the absolute difference. Useful for sanity checks.
Usage
check_fast_vs_generic(fit, newdata, tol = 1e-08)
Value
A list with fields: ll_fast, ll_generic, abs_diff, pass.
Arguments
- fit
A gamlss fit.
- newdata
Data frame to evaluate on.
- tol
Tolerance for pass/fail (default 1e-8).