context("check null model WLS regression")
test_that("WLS", {
dat <- .testNullInputs()
nullmod <- fitNullMod(dat$y, dat$X, group.idx=dat$group.idx, verbose=FALSE)
expect_equal(nullmod$family$family, "gaussian")
expect_false(nullmod$family$mixedmodel)
expect_true(nullmod$hetResid)
expect_true(nullmod$converged)
expect_null(nullmod$zeroFLAG)
expect_equivalent(nullmod$workingY, dat$y)
expect_equivalent(nullmod$outcome, dat$y)
expect_equivalent(nullmod$model.matrix, dat$X)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.