从 rstan 中的 stanfit 对象中提取 BFMI

Extract BFMI from stanfit object in rstan

使用 stan() 在 stan 中拟合模型后,如何为每个链提取 BFMI?从这个对话中:https://groups.google.com/forum/#!topic/stan-dev/uJhsapVwlk8,似乎在使用打印方法时 BFMI 在某一时刻显示。但是,使用 print(stanfit) 时不会出现,使用 get_sampler_params(stanfit) 时不会出现 BFMI。

有没有办法从 stanfit 对象获取 BFMI?

rstan 版本:2.14.1

它不会被返回,但如果你想自己做,请参阅代码this block