MC_neff_theoretical_stable | R Documentation |
This is the stabilised theoretical effective sample size for a sample of
size N
given parameters alpha
and p
.
MC_neff_theoretical_stable(N, alpha, p)
N |
number of iterations |
alpha |
a transition probability (between 0 and 1) |
p |
(marginal) success probability
leads to a cap of 50*N on |
This version returns a maximum ESS of N*log10(N).
different outputs.
It is very similar to MC_neff_theoretical
in most practical situations.
effective sample size
MC_neff_theoretical
p <- .25
MC_neff_theoretical_stable(N = 100, alpha = p, p = p) ## independent sampling gives N_eff = N
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.