Nothing
## File Name: immer_jml_calc_loglike.R
## File Version: 0.03
immer_jml_calc_loglike <- function( dat_score, probs, K, weights)
{
loglike <- 0
eps <- 1E-20
for (kk in 1:(K+1)){
loglike <- loglike + sum( weights*dat_score[,,kk] * log( probs[,,kk] + eps ) )
}
return(loglike)
}
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.