Skip to content

Commit

Permalink
included the imported sampling functions filling by assignment #4
Browse files Browse the repository at this point in the history
  • Loading branch information
donotdespair committed Jan 25, 2024
1 parent e109bce commit 8d9c0d8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/bsvars_sign.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ Rcpp::List bsvar_sign_cpp(
// Check for user interrupts
if (s % 200 == 0) checkUserInterrupt();

bsvars::sample_hyperparameters(aux_hyper, aux_B, aux_A, VB, prior);
bsvars::sample_A_homosk1(aux_A, aux_B, aux_hyper, Y, X, prior);
bsvars::sample_B_homosk1(aux_B, aux_A, aux_hyper, Y, X, prior, VB);
aux_hyper = bsvars::sample_hyperparameters(aux_hyper, aux_B, aux_A, VB, prior);
aux_A = bsvars::sample_A_homosk1(aux_A, aux_B, aux_hyper, Y, X, prior);
aux_B = bsvars::sample_B_homosk1(aux_B, aux_A, aux_hyper, Y, X, prior, VB);

if (s % thin == 0) {
posterior_B.slice(ss) = aux_B;
Expand Down

0 comments on commit 8d9c0d8

Please sign in to comment.