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

shrinkage greater than 1 with 'JZS' prior #27

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

shrinkage greater than 1 with 'JZS' prior #27

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

Comments

@merliseclyde
Copy link
Owner

shrinkage values returned using the Jeffreys-Zellner-Siow prior are greater than one in the following reproducible example:

test_that("JZS: shrinkage is less than or equal to 1", {
  data(Hald)
  hald.gprior = bas.lm(Y ~ ., prior="JZS", modelprior=uniform(), data=Hald)
  expect_equal(0, sum(hald.gprior$shrinkage > 1))
})

This breaks predicted/fitted values

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