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

beta.prime prior not updating value of n in bas.glm #29

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

beta.prime prior not updating value of n in bas.glm #29

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

Comments

@merliseclyde
Copy link
Owner

@merliseclyde merliseclyde commented Aug 8, 2018

REPREX:

 data(Pima.tr, package = "MASS")
  pima.BAS <- bas.glm(type ~ .,
                      data = Pima.tr, n.models = 2^7, method = "BAS",
                      betaprior = beta.prime(n=200), family = binomial(),
                      modelprior = uniform()
  )   #OK

pima.BAS <- bas.glm(type ~ .,
                      data = Pima.tr, n.models = 2^7, method = "BAS",
                      betaprior = beta.prime(), family = binomial(),
                      modelprior = uniform()
# default n=NULL leads to error in C code 

Identified in tests/testthat/test-bayes_glm.R "beta.prime prior for GLM"

@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 14, 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.