Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jeffreys prior with MCMC returns marginal prob > 1 #33

Closed
merliseclyde opened this issue Aug 12, 2018 · 0 comments
Closed

Jeffreys prior with MCMC returns marginal prob > 1 #33

merliseclyde opened this issue Aug 12, 2018 · 0 comments
Assignees
Labels

Comments

@merliseclyde
Copy link
Owner

rexpr: in test-bas-glm.R

test_that("Jeffreys & MCMC", {
 data(Pima.tr, package="MASS")
 pima_BAS <-  bas.glm(type ~ .,
                      data = Pima.tr, method = "MCMC",
                      betaprior = Jeffreys(),
                      family = binomial(),
                      modelprior = tr.beta.binomial(1, 1, 4))
 expect_equal(0, sum(pima_BAS$probne0 > 1))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant