tests/testthat/test-make.predictorMatrix.R

context("make.predictorMatrix")

blocks1 <- make.blocks(c("bmi", "chl", "hyp", "age"))

test_that("errors on invalid data arguments", {
  expect_error(
    make.predictorMatrix(data, blocks = blocks1),
    "Data should be a matrix or data frame"
  )
})
stefvanbuuren/mice documentation built on Dec. 3, 2023, 5:38 a.m.