In most cases, you may want to use generate_datasets to build the object, but for full control, you can also create datasets directly via this function.

SBC_datasets(variables, generated, parameters = NULL)

Arguments

variables

draws of "true" values of unobserved parameters or other derived variables. An object of class draws_matrix (from the posterior package)

generated

a list of objects that can be passed as data to the backend you plan to use. (e.g. list of values for Stan-based backends, a data frame for SBC_backend_brms)

parameters

DEPRECATED. Use variables instead.