Skip to content

Commit

Permalink
Manual specification of offset constant for stochvol
Browse files Browse the repository at this point in the history
  • Loading branch information
franzmohr committed Dec 11, 2023
1 parent a18ef3a commit afef125
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions R/RcppExports.R
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ post_normal_sur <- function(y, z, sigma_i, a_prior, v_i_prior, svd = FALSE) {
#'
#' @examples
#' data("us_macrodata")
#' y <- us_macrodata[, "r"]
#' y <- matrix(us_macrodata[, "r"])
#'
#' # Initialise log-volatilites
#' h_init <- matrix(log(var(y)))
Expand Down Expand Up @@ -678,7 +678,7 @@ stoch_vol <- function(y, h, sigma, h_init, constant) {
#'
#' @examples
#' data("us_macrodata")
#' y <- us_macrodata[, "r"]
#' y <- matrix(us_macrodata[, "r"])
#'
#' # Initialise log-volatilites
#' h_init <- matrix(log(var(y)))
Expand Down Expand Up @@ -729,7 +729,7 @@ stochvol_ksc1998 <- function(y, h, sigma, h_init, constant) {
#'
#' @examples
#' data("us_macrodata")
#' y <- us_macrodata[, "r"]
#' y <- matrix(us_macrodata[, "r"])
#'
#' # Initialise log-volatilites
#' h_init <- matrix(log(var(y)))
Expand Down
2 changes: 1 addition & 1 deletion man/stoch_vol.Rd

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

2 changes: 1 addition & 1 deletion man/stochvol_ksc1998.Rd

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

2 changes: 1 addition & 1 deletion man/stochvol_ocsn2007.Rd

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

2 changes: 1 addition & 1 deletion src/stoch_vol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
//'
//' @examples
//' data("us_macrodata")
//' y <- us_macrodata[, "r"]
//' y <- matrix(us_macrodata[, "r"])
//'
//' # Initialise log-volatilites
//' h_init <- matrix(log(var(y)))
Expand Down
2 changes: 1 addition & 1 deletion src/stochvol_ksc1998.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
//'
//' @examples
//' data("us_macrodata")
//' y <- us_macrodata[, "r"]
//' y <- matrix(us_macrodata[, "r"])
//'
//' # Initialise log-volatilites
//' h_init <- matrix(log(var(y)))
Expand Down
2 changes: 1 addition & 1 deletion src/stochvol_ocsn2007.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
//'
//' @examples
//' data("us_macrodata")
//' y <- us_macrodata[, "r"]
//' y <- matrix(us_macrodata[, "r"])
//'
//' # Initialise log-volatilites
//' h_init <- matrix(log(var(y)))
Expand Down

0 comments on commit afef125

Please sign in to comment.