-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathmemcheck.R
19 lines (18 loc) · 801 Bytes
/
memcheck.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
devtools::load_all()
library(testthat)
# Test the c++ functions, which can all be done using sim_mvgam()
# and forecast()
capture_output(sim_mvgam(family = gaussian(),
trend_model = RW()))
capture_output(sim_mvgam(family = gaussian(),
trend_model = AR(p = 1)))
capture_output(sim_mvgam(family = gaussian(),
trend_model = AR(p = 2)))
capture_output(sim_mvgam(family = gaussian(),
trend_model = AR(p = 3)))
capture_output(sim_mvgam(family = gaussian(),
trend_model = VAR()))
capture_output(sim_mvgam(family = gaussian(),
trend_model = VAR(cor = TRUE)))
fc <- forecast(mvgam:::mvgam_example1,
newdata = mvgam:::mvgam_examp_dat$data_test)