tests/testthat/test-MLH.R

context("MLH")

# loading microsat data
data(mouse_msats)
msats <- convert_raw(mouse_msats)

test_that("sMLH is correct", {
    expect_equal(mean(MLH(msats)), 0.5959596, tolerance = 0.001)
    expect_equal(sd(MLH(msats)), 0.1663811, tolerance = 0.001)
})

Try the inbreedR package in your browser

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

inbreedR documentation built on Feb. 2, 2022, 5:09 p.m.