compare_odefits | R Documentation |
Compare two objects that contain ODE solutions and ODE model likelihoods
max_abs_odesol_diff(x, y, include_y0 = TRUE)
max_abs_loglik_diff(x, y)
log_ratios(x, y)
psis_relative_eff(x, y)
psis(x, y)
compute_reliability_metrics(x, y)
x |
An object of class OdeModelMCMC or OdeModelGQ. |
y |
An object of class OdeModelMCMC or OdeModelGQ. |
include_y0 |
Should the ODE initial state be included in computations? |
A named numeric vector.
max_abs_odesol_diff()
: Compute maximum absolute difference in
ODE solutions of x
and y
.
max_abs_loglik_diff()
: Compute maximum absolute differences in
log likelihoods of x
and y
.
log_ratios()
: Compute log likelihood ratios (on log scale),
i.e. just x$loglik() - y$loglik()
.
psis_relative_eff()
: Compute relative efficiency needed for PSIS,
using loo::relative_eff()
.
psis()
: Call loo::psis()
using the log likelihoods
from x
and y
.
compute_reliability_metrics()
: Compute all metrics.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.