likelihood_gam <- function(gam, data1, data2) {
pcubature(
likelihood_expanded, 0, 1, vectorInterface = TRUE,
gam = gam, data1 = data1, data2 = data2
)$integral
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.