Effective sample size (R)
Effective sample size (R)ΒΆ
Basic explanation of the effective sample size goes here.
i.e. we recommend having 100 ess (bulk and tail) per chain
and a minimum of 4 chains.
However, you should check with helper_function_x
that you have
already achieved the desired precision in case you need some
more samples.
library("posterior")
eight_schools_array <- example_draws("eight_schools")
ess_bulk(eight_schools_array)
This is posterior version 0.1.3
1277.47043696417
Here there is a note about how bulk and tail ess differ
ess_tail(eight_schools_array)
1547.54631634921
ess is a very important diagnostic, you should always use it on your posterior samples before doing any analysis with them