R/tam_np_2pl_calc_probs.R

Defines functions tam_np_2pl_calc_probs

## File Name: tam_np_2pl_calc_probs.R
## File Version: 0.02

tam_np_2pl_calc_probs <- function(pars, desmat)
{
    I <- nrow(pars)
    np <- ncol(pars)
    TP <- nrow(desmat)
    probs <- array(0, dim=c(I,2,TP))
    for (ii in 1L:I){
        par0 <- pars[ii,]
        probs[ii,,] <- tam_np_2pl_irf_probs(x=par0, par0=par0, index=1:np, desmat=desmat)
    }
    return(probs)
}

Try the TAM package in your browser

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

TAM documentation built on May 29, 2024, 2:20 a.m.