Skip to content

Commit

Permalink
removing MCMCpack from test
Browse files Browse the repository at this point in the history
  • Loading branch information
michellepistner committed May 29, 2024
1 parent 1a35d97 commit b37a67a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/test-pibble.R
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ uncollapse <- function(eta, X, upsilon, Theta, Xi, Gamma){
EN <- eta[,,i] - LambdaN %*% X
Delta <- LambdaN - Theta
XiN <- Xi + tcrossprod(EN) + Delta %*% solve(Gamma) %*% t(Delta)
Sigma[,,i] <- MCMCpack::riwish(upsilonN, XiN)#solve(rWishart(1, upsilonN, XiN)[,,1])
Sigma[,,i] <- solve(rWishart(1, upsilonN, solve(XiN))[,,1])
Z <- matrix(rnorm((D-1)*Q), D-1, Q)
Lambda[,,i] <- LambdaN + t(chol(Sigma[,,i]))%*%Z%*%chol(GammaN)
}
Expand Down

0 comments on commit b37a67a

Please sign in to comment.