R/likelihood_gam.R

Defines functions likelihood_gam

Documented in likelihood_gam

likelihood_gam <- function(gam, data1, data2) {
  pcubature(
    likelihood_expanded, 0, 1, vectorInterface = TRUE,
    gam = gam, data1 = data1, data2 = data2
  )$integral
}
BriceonWiley/IntegratedLikelihood.R documentation built on Aug. 21, 2020, 11 p.m.