Skip to content

Commit 3c94b0a

Browse files
authored
Remove check of negative posterior, does not apply posterior is prob density
1 parent 1c7b590 commit 3c94b0a

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

R/pmcmc_utils.R

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,6 @@ sample_pmcmc <- function(pmcmc_results,
5555
res <- pmcmc_results$results
5656
}
5757

58-
# Log Posterior must be negative and nonzero -- the later because the posterior should never be P(1)
59-
assert_neg(res$log_posterior, zero_allowed = FALSE)
60-
6158
# convert to probability by exponentiating it
6259
res <- unique(res)
6360
probs <- exp(res$log_posterior)

0 commit comments

Comments
 (0)