R/sirt_probs_dichotomous_to_array.R

Defines functions sirt_probs_dichotomous_to_array

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

sirt_probs_dichotomous_to_array <- function(probs)
{
    I <- nrow(probs)
    TP <- ncol(probs)
    ncat <- 2
    probs1 <- array(0, dim=c(I,ncat,TP) )
    probs1[,2,] <- probs
    probs1[,1,] <- 1 - probs
    return(probs1)
}

Try the sirt package in your browser

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

sirt documentation built on Aug. 11, 2023, 5:07 p.m.