total_effect_boot_function <- function(pnde, tnie, ycont = FALSE) {
res <- 0
if (ycont) {
res <- tnie + pnde
} else {
res <- tnie * pnde
}
res
}
total_effect_delta_function <- function(ycont = FALSE) {
res <- 0
if (ycont) {
res <- "~x1 + x2"
} else {
res <- "~x1 * x2"
}
as.formula(res)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.