R/rm_sdt_mstep_numdiff_diffindex.R

Defines functions rm_sdt_mstep_numdiff_diffindex

## File Name: rm_sdt_mstep_numdiff_diffindex.R
## File Version: 0.04


rm_sdt_mstep_numdiff_diffindex <- function(ll1, ll2, numdiff.parm,
        diffindex )
{
    ll_grad <- ( ll1 - ll2 ) / (2*numdiff.parm)
    ll_grad <- rowsum(ll_grad, diffindex )
    ll_grad <- ll_grad[ rownames(ll_grad) > 0, 1 ]
    return(ll_grad)
}
alexanderrobitzsch/sirt documentation built on Sept. 8, 2024, 2:45 a.m.