ifs_SBC: Full inverse forward sampling supported SBC

View source: R/ifs_sbc.R

ifs_SBCR Documentation

Full inverse forward sampling supported SBC

Description

Full inverse forward sampling supported SBC

Usage

ifs_SBC(
  fit,
  n_sims,
  ppred_data_gen,
  precon_sample = NULL,
  lb = NULL,
  ub = NULL,
  truncate = FALSE,
  post_warmup_samples = 1000,
  ...
)

Arguments

fit

brmsfit object that is used to generate SBC datasets and fit SBC models

n_sims

Number of SBC simulations/datasets.

ppred_data_gen

Function that generates the data for the newdata argument of posterior_predict to generate SBC datasets.

precon_sample

The dataset that was used to precondition the fit.

lb

Lower bound for the outcome. Is used to resample.

ub

Upper bound for the outcome. Is used to resample.

truncate

If TRUE, will truncate outcome values, if FALSE, will resample instead.

post_warmup_samples

Is passed to the sbc model updates and used to make sure resampling only uses valid samples. Increase in case of numerical instability.

...

further parameters. Currently only passed to ppred_data_gen.


sims1253/bayesim documentation built on Aug. 13, 2024, 5:59 p.m.