R/rm_grouped_expected_likelihood.R

Defines functions rm_grouped_expected_likelihood

## File Name: rm_grouped_expected_likelihood.R
## File Version: 0.06

rm_grouped_expected_likelihood <- function(pjk, n.ik, diffindex=NULL, eps=1E-30)
{
    ll0 <- rowSums( n.ik * log(pjk+eps) )
    if ( ! is.null(diffindex) ){
        ll0 <- rowsum(ll0, diffindex )[,1]
    }
    return(ll0)
}
alexanderrobitzsch/sirt documentation built on March 18, 2024, 1:29 p.m.