Page 1 of 1

HB: Retrieving iteration-level draws of random parameters

Posted: 23 Mar 2026, 17:19
by siqifeng
Hello!

I wonder if we can retrieve iteration-level draws of random parameters in hierarchical Bayesian estimation. We do have individual-level posterior means, which should be calculated using these draws. I want to analyze the distribution of posterior/conditional means across a sample, say, \beta * LV_n with a fixed \beta. I can retrieve iteration-level draws of \beta using

Code: Select all

model$HB_iterations_non_random
with

Code: Select all

gStoreDraws = TRUE
, but LV_n is at the individual level. What should I do in this case? Thanks in advance.

Siqi

Re: HB: Retrieving iteration-level draws of random parameters

Posted: 25 Mar 2026, 10:19
by stephanehess
Hi Siqi

you need

Code: Select all

saveHBiterations=TRUE
in saveOutput_settings

Have a look at

Code: Select all

?apollo_saveOutput
Stephane