tests/testthat/test.check_YeoJohn.R

context("check_YeoJohn")

library(ACmisc)

### ###
test_that('YeoJohn de-skews a variable',{
  expect_equivalent({
    round(
      psych::skew(
        YeoJohn(ACmisc::dat_cochraneEtAl_2019_PLOSOne$enum)
    )
  ,2)},
    0)
})
akcochrane/ACmisc documentation built on Nov. 24, 2024, 11:22 a.m.