#' @export
#' @rdname metrics
n_eff_alls <- function(x, stratum) {
if (missing(stratum)) {
1 / (1 - het_exp(x))
} else {
t(sapply(split(1:nrow(x), stratum), function(i, g) n_eff_alls(g[i, , ]), g = x))
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.