R/sirt_EAP.R

Defines functions sirt_EAP

## File Name: sirt_EAP.R
## File Version: 0.01

sirt_EAP <- function(post, theta)
{
    TP <- ncol(post)
    N <- nrow(post)
    D <- ncol(theta)
    EAP <- matrix(NA, nrow=N, ncol=D)
    for (tt in 1:D){
        thetaM <- sirt_matrix2(theta[,tt], nrow=N)
        EAP[,tt] <- rowSums(thetaM * post)
    }
    return(EAP)
}
alexanderrobitzsch/sirt documentation built on March 18, 2024, 1:29 p.m.