Skip to content

Commit

Permalink
update reference page
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholas Clark committed Nov 15, 2024
1 parent 0220dea commit f32fd6e
Show file tree
Hide file tree
Showing 62 changed files with 439 additions and 476 deletions.
6 changes: 4 additions & 2 deletions R/forecast.mvgam.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ forecast <- function(object, ...){
#' trend_model = AR(),
#' noncentred = TRUE,
#' data = simdat$data_train,
#' chains = 2)
#' chains = 2,
#' silent = 2)
#'
#' # Hindcasts on response scale
#' hc <- hindcast(mod)
Expand Down Expand Up @@ -864,7 +865,8 @@ forecast_draws = function(object,
'linkfun',
'forecast_trend',
'extract_series_trend_pars',
'mvgam_predict')
'mvgam_predict',
'prep_varma_params')
attr(funs_list, 'envir') <- as.environment(asNamespace("mvgam"))
attr(funs_list, 'mode') <- 'function'

Expand Down
12 changes: 8 additions & 4 deletions R/lfo_cv.mvgam.R
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@
#' newdata = dat$data_test,
#' burnin = 300,
#' samples = 300,
#' chains = 2)
#' chains = 2,
#' silent = 2)
#'
#'# Fit a less appropriate model
#'mod_rw <- mvgam(y ~ s(season, bs = 'cc', k = 6),
Expand All @@ -80,7 +81,8 @@
#' newdata = dat$data_test,
#' burnin = 300,
#' samples = 300,
#' chains = 2)
#' chains = 2,
#' silent = 2)
#'
#'# Compare Discrete Ranked Probability Scores for the testing period
#'fc_ar2 <- forecast(mod_ar2)
Expand All @@ -96,10 +98,12 @@
#'# for estimating model parameters
#'lfo_ar2 <- lfo_cv(mod_ar2,
#' min_t = 40,
#' fc_horizon = 3)
#' fc_horizon = 3,
#' silent = 2)
#'lfo_rw <- lfo_cv(mod_rw,
#' min_t = 40,
#' fc_horizon = 3)
#' fc_horizon = 3,
#' silent = 2)
#'
#'# Plot Pareto-K values and ELPD estimates
#'plot(lfo_ar2)
Expand Down
9 changes: 6 additions & 3 deletions R/loo.mvgam.R
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@
#' data = rbind(simdat$data_train,
#' simdat$data_test),
#' family = gaussian(),
#' chains = 2)
#' chains = 2,
#' silent = 2)
#'
#'# Inspect the model and calculate LOO
#'conditional_effects(mod1)
Expand All @@ -65,14 +66,16 @@
#' formula = y ~ s(season, bs = 'cc', k = 6) +
#' s(season, series, bs = 'fs',
#' xt = list(bs = 'cc'), k = 4),
#' chains = 2)
#' chains = 2,
#' silent = 2)
#'conditional_effects(mod2)
#'loo(mod2)
#'
#'# Now add AR1 dynamic errors to mod2
#'mod3 <- update(mod2,
#' trend_model = AR(),
#' chains = 2)
#' chains = 2,
#' silent = 2)
#'conditional_effects(mod3)
#'plot(mod3, type = 'trend')
#'loo(mod3)
Expand Down
Binary file modified docs/reference/forecast.mvgam-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/reference/forecast.mvgam-10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/reference/forecast.mvgam-11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/reference/forecast.mvgam-12.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/reference/forecast.mvgam-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/reference/forecast.mvgam-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/reference/forecast.mvgam-4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/reference/forecast.mvgam-5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/reference/forecast.mvgam-6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/reference/forecast.mvgam-7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/reference/forecast.mvgam-8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/reference/forecast.mvgam-9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
87 changes: 26 additions & 61 deletions docs/reference/forecast.mvgam.html

Large diffs are not rendered by default.

16 changes: 10 additions & 6 deletions docs/reference/lfo_cv.mvgam.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified docs/reference/loo.mvgam-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/reference/loo.mvgam-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/reference/loo.mvgam-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/reference/loo.mvgam-4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/reference/loo.mvgam-5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/reference/loo.mvgam-6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/reference/loo.mvgam-7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit f32fd6e

Please sign in to comment.