Skip to contents

Checks the portable schema, model and optimizer metadata, parameter map, bounds, compact estimability output, provenance, and any stored MCMC array. This is structural validation: it does not rebuild the RTMB objective or independently recompute the stored runtime identity. Use sbt_fit_rebuild() for implementation and objective checks. Fits written by sbt_fit_save() and loaded by sbt_fit_read() have their runtime and posterior identities and embedded fit-validation records verified against the serialized payload.

Usage

sbt_fit_validate(x)

Arguments

x

An object expected to inherit from sbt_fit.

Value

x, invisibly, when valid; otherwise an error is raised.

Examples

fit <- sbt_example_fit(rebuild = FALSE)
#> Warning: Dependency versions differ: RTMBdist, TMB
sbt_fit_validate(fit)