tests/testthat/test-MFAEstimate.R

context("MFAEstimate")

if (requireNamespace("mfa", quietly = TRUE)) {
    library(mfa)
    synth <- create_synthetic(C = 20, G = 5, zero_negative = TRUE,
                              model_dropout = TRUE)
}

test_that("MFAEstimate works", {
    skip_if_not_installed("mfa")
    params <- mfaEstimate(synth$X)
    expect_true(validObject(params))
})

Try the splatter package in your browser

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

splatter documentation built on Dec. 3, 2020, 2:01 a.m.