tests/testthat/testGDP.R

context("Data applications")

test_that("GDP application is robust",
          {
            expect_identical(as.numeric(round(estimate.functional(Y=GDP$observation,X=GDP$forecast,stateVariable = GDP$forecast,model=probit_linear)$gmm$coefficients,digits=2)),c(-0.11,0.11))
            expect_identical(as.numeric(round(summary(estimate.functional(Y=GDP$observation,X=GDP$forecast,stateVariable = GDP$forecast,model=probit_linear))$Jtest$test[2],digits=2)),c(0.24))
          })

Try the PointFore package in your browser

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

PointFore documentation built on May 2, 2019, 9:42 a.m.