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

errors with intrinsic prior #30

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

errors with intrinsic prior #30

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

Comments

@merliseclyde
Copy link
Owner

@merliseclyde merliseclyde commented Aug 10, 2018

REPREX

test_that("intrinsic prior for GLM", {
  data(Pima.tr, package = "MASS")
  expect_error( pima.BAS <- bas.glm(type ~ .,
                      data = Pima.tr, n.models = 2^7, method = "BAS",
                      betaprior = intrinsic(n = nrow(Pima.tr)), family = binomial(),
                      modelprior = uniform()
  ))
#  expect_equal(0, sum(pima.BAS$shrinkage > 1))
})

Error in bas.glm(type ~ ., data = Pima.tr, n.models = 2^7, method = "BAS", :
REAL() can only be applied to a 'numeric', not a 'integer'

@merliseclyde merliseclyde self-assigned this Aug 10, 2018
@merliseclyde merliseclyde added the bug label Aug 10, 2018
merliseclyde added a commit that referenced this issue Aug 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.