tests/testthat/test-cor_to_p.R

test_that("cor_to_p", {
  expect_message(df <- cor_to_p(-0.1175698, n = 150, method = "kendall"))
  expect_equal(
    df,
    list(p = 0.0327638207025712, statistic = -2.1349655930582),
    tolerance = 0.001
  )
})

Try the correlation package in your browser

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

correlation documentation built on April 6, 2023, 5:18 p.m.