tests/testthat/test-class_check.R

test_that('Test output object', {
  expect_s3_class(
    mars(formula = effect ~ 1 + (1|district/study),
         data = school, studyID = 'district',
         variance = 'var', varcov_type = 'multilevel',
         structure = 'multilevel',
         estimation_method = "MLE"),
    "mars")
})

Try the mars package in your browser

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

mars documentation built on April 12, 2025, 1:35 a.m.