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

segmentation fault with method "MCMC+BAS" if initial (best model) arg is not the null model #69

Closed
merliseclyde opened this issue Mar 23, 2023 · 1 comment
Assignees
Labels

Comments

@merliseclyde
Copy link
Owner

Describe the bug
bas.lm using method = "MCMC+BAS" crashes with a segmentation fault if bestmodel is not NULL or the null model.

To Reproduce
Steps to reproduce the behavior:

data(Hald) bas.lm(Y ~ ., prior = "BIC", method = "MCMC+BAS", MCMC.iterations = 1000, n.models=2^4, bestmodel=best, update=8, modelprior = uniform(), data = Hald)

Expected behavior
should exit cleanly. If MCMC.iterations = 0, should give the same result as when method = "BAS"

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [OSX Bug Sur]
  • R Version [e.g. 4.2.2]

Additional context
Add any other context about the problem here.

merliseclyde added a commit that referenced this issue Mar 23, 2023
bas.lm using method = "MCMC+BAS" crashes with a segmentation fault if bestmodel is not NULL or the null model.
@merliseclyde merliseclyde self-assigned this Mar 23, 2023
@merliseclyde
Copy link
Owner Author

Added unit tests; problem resolved after correcting index issue related to the current model position versus the number of Unique models

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