tests/testthat/test-plot_smd_comparison.R

test_that("plot smd", {
  dat <- data.frame()
  expect_error(plot_smd(dat),
    "This is not a data set derieved from MatchItEXT::compute_smd().")
})

test_that("plot ps qq",{
  dat <- list()
  expect_error(plot_ps_qq(dat), "The input is not a matchit object!")
})

Try the MatchItEXT package in your browser

Any scripts or data that you put into this service are public.

MatchItEXT documentation built on Oct. 28, 2020, 5:06 p.m.