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

diagnostic plot error for bas.glm objects #28

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

diagnostic plot error for bas.glm objects #28

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

Comments

@merliseclyde
Copy link
Owner

@merliseclyde merliseclyde commented Aug 8, 2018

When using MCMC, the length of the MCMC estimates of the posterior inclusion probabilities is the number of models. This leads to an error in the diagnostic plot function.

REPREX:

data(Pima.tr, package = "MASS")
pima.MCMC <- bas.glm(type ~ .,
    data = Pima.tr, MCMC.iterations = 2^10,
    method = "MCMC", betaprior = aic.prior(),
    family = binomial(),
    modelprior = tr.poisson(ncol(Pima.tr) - 1, 7)
  )
  expect_null(diagnostics(pima.MCMC, type = "pip"))

In tests/testthat/test-bas_glm.R

@merliseclyde merliseclyde self-assigned this Aug 8, 2018
@merliseclyde merliseclyde added the bug label Aug 8, 2018
merliseclyde added a commit that referenced this issue Oct 18, 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.