tests/testthat/test-generate-eive-data.R

library(testthat)
library(eive)

test_that("eive.cga classical example", {
    
    require("eive")

    testdata <- generate.eive.data(
        n = 100,
        e.sd = 1,
        delta.sd = 1,
        seed = 12345,
        useotherx = TRUE
    )
    
    expect_equal(dim(testdata), c(100, 3))
    expect_true(
        all.equal(
            names(testdata), 
            c("xdelta", "xother", "y")
        )
    )
})

Try the eive package in your browser

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

eive documentation built on Aug. 21, 2023, 5:11 p.m.