compare_odefits: Compare two objects that contain ODE solutions and ODE model...

compare_odefitsR Documentation

Compare two objects that contain ODE solutions and ODE model likelihoods

Description

Compare two objects that contain ODE solutions and ODE model likelihoods

Usage

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)

Arguments

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?

Value

A named numeric vector.

Functions

  • 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.


jtimonen/odemodeling documentation built on Sept. 15, 2024, 4:29 a.m.