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)
}

Try the sirt package in your browser

Any scripts or data that you put into this service are public.

sirt documentation built on May 29, 2024, 8:43 a.m.