R/linpred.GPCM.R

#' @import ltm
linpred.GPCM <-
function (betas, z, IRT.param = TRUE)
{
    lapply(betas, function(x) {
        nx <- length(x)
        if (IRT.param)
            t(x[nx] * outer(z, x[-nx], "-"))
        else outer(x[-nx], x[nx] * z, "+")
    })
}

Try the IMTest package in your browser

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

IMTest documentation built on May 1, 2019, 9:06 p.m.