tests/testthat/test_Markovmoments.R

test_that("Test of Markovmoments", {
  a<- c( - 1, 1)
  A <- matrix(c(0.5, 0.5,
                0.6, 0.4  ), 2, 2)
  m <-  Markovmoments(a, A)
  expect_equal(length(a), length(m$"Stationary distribution"))
})

Try the sgmodel package in your browser

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

sgmodel documentation built on Feb. 27, 2020, 5:06 p.m.