R/tam_jml_compute_Axsi.R

Defines functions tam_jml_compute_Axsi

## File Name: tam_jml_compute_Axsi.R
## File Version: 0.03

tam_jml_compute_Axsi <- function(A, xsi, resp)
{
    dim_A <- dim(A)
    K <- dim_A[2]
    I <- dim_A[1]
    AXsi <- matrix(NA, nrow=I, ncol=K)
    colnames(AXsi) <- paste0("Cat",0:(K-1) )
    rownames(AXsi) <- colnames(resp)
    for (kk in 1:K){
        AXsi[,kk] <- A[,kk,] %*% xsi
    }
    return(AXsi)
}

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.