library(testthat) mcmc.summ <- function(x) { c(m = mean(x), sd = sd(x), quantile(x, c(.025, .975))) } ################################ dichotomous N <- 5 M <- 3 # Rasch / 1PL predictions (special case of ADISOP / ACM) rasch <- outer( seq(-2, 2, length.out = N), -seq(-1, 2, length.out = M), function(x, y) (1 + exp(-x + y))^-1 ) test_that("NIRT axioms match with Rasch predictions", { skip_on_cran() expect_silent(tmp <- nirt_to_Ab(N, M)) # constraints: 0