R/sirt_logit_to_probs.R

Defines functions sirt_logit_to_probs

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


sirt_logit_to_probs <- function(y)
{
    K1 <- length(y)
    x <- rep(0,K1+1)
    x[1:K1] <- y
    x <- exp(x)
    x <- x / sum(x)
    return(x)
}

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.