Skip to content

Commit

Permalink
run internals using rstan to avoid strange cmdstanr namespace warning
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasjclark committed Sep 30, 2024
1 parent 400156c commit a51df94
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
Binary file modified R/sysdata.rda
Binary file not shown.
Binary file modified src/RcppExports.o
Binary file not shown.
Binary file modified src/mvgam.dll
Binary file not shown.
Binary file modified src/trend_funs.o
Binary file not shown.
15 changes: 10 additions & 5 deletions tests/mvgam_examples.R
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ mvgam_example1 <- mvgam(y ~ s(season, k = 5),
data = mvgam_examp_dat$data_train,
burnin = 300,
samples = 30,
chains = 1)
chains = 1,
backend = 'rstan')

# Univariate process with trend_formula, trend_map and correlated process errors
trend_map <- data.frame(series = unique(mvgam_examp_dat$data_train$series),
Expand All @@ -163,7 +164,8 @@ mvgam_example2 <- mvgam(y ~ 1,
data = mvgam_examp_dat$data_train,
burnin = 300,
samples = 30,
chains = 1)
chains = 1,
backend = 'rstan')

# Multivariate process without trend_formula
mvgam_example3 <- mvgam(y ~ s(season, k = 5),
Expand All @@ -172,7 +174,8 @@ mvgam_example3 <- mvgam(y ~ s(season, k = 5),
data = mvgam_examp_dat$data_train,
burnin = 300,
samples = 30,
chains = 1)
chains = 1,
backend = 'rstan')

# Multivariate process with trend_formula and moving averages
mvgam_example4 <- mvgam(y ~ series,
Expand All @@ -182,7 +185,8 @@ mvgam_example4 <- mvgam(y ~ series,
data = mvgam_examp_dat$data_train,
burnin = 300,
samples = 30,
chains = 1)
chains = 1,
backend = 'rstan')

# GP dynamic factors (use list format to ensure it works in tests)
list_data <- list()
Expand All @@ -198,7 +202,8 @@ mvgam_example5 <- mvgam(y ~ series + s(season, k = 5),
data = list_data,
burnin = 300,
samples = 30,
chains = 1)
chains = 1,
backend = 'rstan')

# Save examples as internal data
usethis::use_data(
Expand Down

0 comments on commit a51df94

Please sign in to comment.