Compare integration results at the current n_int against a doubled
resolution to assess numerical accuracy. Large discrepancies indicate
that n_int should be increased.
Usage
check_integration(
data,
...,
cor = NULL,
cor_adjust = NULL,
check_joint = TRUE,
verbose = TRUE
)Arguments
- data
An
mlumr_dataobject with integration points- ...
Distribution specifications (same as passed to
add_integration())- cor
Correlation matrix (same as passed to
add_integration())- cor_adjust
Adjustment method (same as passed to
add_integration())- check_joint
If
TRUE(default), also compare pairwise correlation matrices between the current and doubledn_int, and the maximum per-AgD-row absolute deviation from the user-suppliedcor. The pairwise comparison catches cases where marginals converge but joint dependence structure does not (rare in practice for QMC with sensiblecor_adjustbut worth flagging whenn_intis small).- verbose
Logical; if
FALSE, suppresses printed diagnostic messages.
