R/mdmb_sample_probabilities.R

Defines functions mdmb_sample_probabilities

## File Name: mdmb_sample_probabilities.R
## File Version: 0.04

mdmb_sample_probabilities <- function(matr)
{
    matr1 <- sirt::rowCumsums.sirt(matr=matr)
    N <- nrow(matr)
    rn <- stats::runif(N)
    imp1 <- sirt::rowIntervalIndex.sirt(matr=matr1,rn=rn)
    return(imp1)
}
alexanderrobitzsch/mdmb documentation built on July 18, 2024, 11:14 p.m.