posterior_sbc_contract: Define a posterior-SBC replication contract

View source: R/052-irt-validation-0-7.R

posterior_sbc_contractR Documentation

Define a posterior-SBC replication contract

Description

Posterior SBC is deliberately callback-driven: conditioning/augmentation differs by model, and eyeprocess does not pretend that re-running ordinary prior SBC on an observed-data neighbourhood is posterior SBC.

Usage

posterior_sbc_contract(replication)

Arguments

replication

Function '(replicate, observed_data)' returning 'list(truth=named_numeric, draws=matrix_or_data_frame)'. The callback is responsible for the conditional posterior-SBC construction appropriate to the model, including fitting to the observed data and the required self-consistency experiment.

Value

An object of class "eye_posterior_sbc_contract", stored as a named list, with components "replication", "requirement". It contains define a posterior-SBC replication contract and associated metadata or diagnostics needed to interpret the result.


eyeprocess documentation built on Sept. 28, 2026, 5:08 p.m.