-
Notifications
You must be signed in to change notification settings - Fork 7
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
Error when both n.chain
and start.val
are given if n.chain>1
#2
Comments
Hi @hdarjus cannot you simple make a loop around the fit and collect the results? |
Yes, that's one potential workaround. However, that doesn't solve the issue that I provided consistent A package-wide solution could be to add something like
to the above linked line before the |
Simply put n.chain = 1. I won't change the package for this design feature. But thx for your proposal |
Oh, sorry @hdarjus, I missunderstood your idea. Yes, will make the fix for the next release. Thx for pointing this to me ! |
I am glad it works out! |
Hi @ArdiaD,
thanks for the package. For improved MCMC diagnostics for my case study, I wanted to run multiple chains and also provide starting values. I got into an error that I was able to overcome only by reading the source code of the package.
MWE:
The following error is thrown before sampling starts:
The problem is in this line:
bayesGARCH/R/sampler.R
Line 82 in becc562
It is true that providing
n.chain
is redundant ifstart.val
is given but I personally found the behavior counterintuitive (I think in JAGS and Stan you have to provide both) and the solution should be simple.I hope you find this ticket useful.
Cheers,
Darjus
The text was updated successfully, but these errors were encountered: