likelihood_p <- function(p, data) {
pcubature(
likelihood_orig_p, lowerLimit = c(0, 0), upperLimit = c(1, 1),
p = p, data = data, vectorInterface = TRUE
)$integral
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.