Nothing
waicnp_new <-
function(y, X, res, termsum = NULL) {
if(is.null(termsum)) {
termsum <- inf_criteria(y, X, res)
}
logtermsum <- log(termsum)
lpd <- sum(log(apply(exp(logtermsum),2,mean)))
p2 <- sum(apply(logtermsum,2,var))
waic <- -2*(lpd-p2)
res <- list()
res$pW <- p2
res$WAIC <- waic
res
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.