Skip to content

Commit

Permalink
Add post_gamma_state_variance
Browse files Browse the repository at this point in the history
  • Loading branch information
franzmohr committed Oct 19, 2023
1 parent ccae0f2 commit 5cf692f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions R/RcppExports.R
Original file line number Diff line number Diff line change
Expand Up @@ -464,15 +464,15 @@ post_coint_kls_sur <- function(y, beta, w, sigma_i, v_i, p_tau_i, g_i, x = NULL,
#' a[, i] <- a[, i - 1] + rnorm(k, 0, sqrt(1 / 100))
#' }
#'
#' a_init <- matrix(a[, 1]) # Define inital state
#' a_init <- matrix(a[, 1]) # Define initial state
#' a <- a[, -1] # Drop initial state from main sample
#'
#' # Define priors
#' shape_prior <- matrix(1, k)
#' rate_prior <- matrix(.0001, k)
#'
#' # Obtain posterior draw
#' post_gamma_state_variance(a, a_init, shape_prior, rate_prior)
#' post_gamma_state_variance(a, a_init, shape_prior, rate_prior, inverse = FALSE)
#'
#' @return A matrix.
#'
Expand Down
4 changes: 2 additions & 2 deletions man/post_gamma_state_variance.Rd

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

4 changes: 2 additions & 2 deletions src/post_gamma_state_variance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@
//' a[, i] <- a[, i - 1] + rnorm(k, 0, sqrt(1 / 100))
//' }
//'
//' a_init <- matrix(a[, 1]) # Define inital state
//' a_init <- matrix(a[, 1]) # Define initial state
//' a <- a[, -1] # Drop initial state from main sample
//'
//' # Define priors
//' shape_prior <- matrix(1, k)
//' rate_prior <- matrix(.0001, k)
//'
//' # Obtain posterior draw
//' post_gamma_state_variance(a, a_init, shape_prior, rate_prior)
//' post_gamma_state_variance(a, a_init, shape_prior, rate_prior, inverse = FALSE)
//'
//' @return A matrix.
//'
Expand Down

0 comments on commit 5cf692f

Please sign in to comment.