Backends that represent explicit posterior distributions (i.e. not just samples) can implement this S3 generic to evaluate the CDF of that distribution at the simulated values.

SBC_posterior_cdf(fit, variables)

# S3 method for default
SBC_posterior_cdf(fit, variables)

Arguments

fit

an object returned by the SBC_fit() method.

variables

a named vector of values at which to evaluate the CDF

Value

either NULL (the default implementation) or a data.frame

with a row for each variable. The columns must include: variable (variable name), and either cdf (if there are no ties) or the pair cdf_low and cdf_high indicate the possible tied values for the CDF.

Details

A backend may choose to return explicit CDF only for some model parameters. return from SBC_fit().