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
Results from print() differ from monitor() for the same Stan fit #280
Comments
Thanks for the very careful bug report --- we really appreciate it. |
print() doesn’t include warmup iterations — are the outputs the same when you set inc_warmup = FALSE? On Mar 17, 2016, at 12:29 AM, Daniel Furr notifications@github.com wrote:
|
And by default, monitor considers the first half as warmup iterations (see |
If I amend the example like this:
then m1 and m2 agree. But from a user perspective, the fact that |
I'm continuing on the issue, which isn't really appropriate, I agree with Daniel that this is confusing behavior. Given that permuted=FALSE and inc_warmup=FALSE are defaults for
|
I use monitor() to get a matrix of posterior summary statistics, which most You're right that the inconvenience amounts to just an additional line of Also, I apologize if I misused the issues tracker earlier with my
|
this is NOT a bug. Just paste some doc as the answer to some questions raised in this "issue" Doc of monitor has (note argument warmup and it's default value).
In addition, doc of print.stanfit has
|
As Jiqiang says, not a bug per se, so I'm closing this issue. |
Summary:
Results from print() differ from monitor() for the same Stan fit.
Description:
When a stanfit object is passed to monitor(), the results differ totally from print(). When an array of posterior draws from extract() is passed to monitor(), print() and monitor() show different results for n_eff but are otherwise identical.
Reproducible Steps:
Current Output:
VERSUS m1
VERSUS m2
Expected Output:
If applicable, the output you expected from RStan.
RStan Version:
2.9.0.3
R Version:
R version 3.2.2 (2015-08-14)
Operating System:
Windows 7.1
The text was updated successfully, but these errors were encountered: