compute.ridge.loglik = function(fit){
SigmaY = with(fit, residual_variance * sb2 * g$w *(X %*% t(X)) + diag(residual_variance,n))
loglik = mvtnorm::dmvnorm(as.vector(fit$y),sigma = SigmaY,log=TRUE)
return(loglik)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.