R/linpred.GPCM.R

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 ltm package in your browser

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

ltm documentation built on March 18, 2022, 6:36 p.m.