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"
  )
})
amices/mice documentation built on Dec. 22, 2024, 7:37 p.m.