Skip to contents

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)

Arguments

fit

A gamlss fit.

newdata

Data frame to evaluate on.

tol

Tolerance for pass/fail (default 1e-8).

Value

A list with fields: ll_fast, ll_generic, abs_diff, pass.