R/prob_genlogis_4pl.R

Defines functions prob_genlogis_4pl

## File Name: prob_genlogis_4pl.R
## File Version: 0.08


prob_genlogis_4pl <- function(theta, b, a, c, d, alpha1, alpha2, Qmatrix)
{
    pjk <- prob_raschtype_genlogis( theta=theta, b=b, alpha1=alpha1,
                alpha2=alpha2, fixed.a=a, Qmatrix=Qmatrix)
    if ( (any(c>0)) | (any(d<1)) ){
        np <- nrow(pjk)
        cM <- sirt_matrix2( x=c, nrow=np )
        dM <- sirt_matrix2( x=d, nrow=np )
        pjk <- cM + (dM - cM) * pjk
    }
    #--- output
    return(pjk)
}

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.