Full forward sampling of a brms model's responses for a SINGLE posterior draw
Source:R/generators.R
brms_full_ppred.RdSimulates the response(s) of a brmsfit at a single posterior draw, respecting dependency order among multiple responses. Ported from the SBC package and the 0.x bayesim codebase; bayeshear/SBC/future dependencies removed.
Details
ifs_generator() only ever needs one draw per task (the deterministic
rep_idx-indexed draw), so this function takes a single draw index and
returns a single data.frame. This eliminates the prior index mismatch where
results were stored at pp_data[[draw_value]] but read at simulated[[1]].