tests/testthat/test-EstMLELMBin.R

estimate<-EstMLELMBin(Chromosome_data$No.of.Asso,Chromosome_data$fre,0.1,0.0015)

context("Checking outputs")
test_that("estimate method",{
          expect_identical(estimate@method,
                           "BFGS")
                           })

test_that("estimate method",{
          expect_identical(estimate@optimizer,
                           "optim")
                          })

test_that("minimized negative ll value",{
          expect_identical(round(estimate@min,4),
                          436.8416)
                          })

test_that("Checking class of output",{
          expect_that(estimate,
          is_a("mle2"))
          })

Try the fitODBOD package in your browser

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

fitODBOD documentation built on Jan. 15, 2023, 5:11 p.m.