Open DoktorMike opened 6 years ago
Thanks for the detailed bug report.
I don't have problems compiling that model with the develop version of CmdStan (with matching Stan and math libs). It also works on my Mac with RStan (Version 2.17.2, GitRev: 2e1f913d3ca3) with clang++ Apple LLVM version 7.0.2 (clang-700.1.81).
We have had that bug off and on for several years now. Sometimes you have to do
sqrt(N - 1.0)
but Andrew gets mad when stuff like that appears in the manual.
On Wed, Jan 3, 2018 at 2:11 PM, Bob Carpenter notifications@github.com wrote:
Thanks for the detailed bug report.
I don't have problems compiling that model with the develop version of CmdStan (with matching Stan and math libs). It also works on my Mac with RStan (Version 2.17.2, GitRev: 2e1f913 https://github.com/stan-dev/rstan/commit/2e1f913d3ca3678128f159b3d17d3d1f9b82704e) with clang++ Apple LLVM version 7.0.2 (clang-700.1.81).
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/stan-dev/rstan/issues/477#issuecomment-355099223, or mute the thread https://github.com/notifications/unsubscribe-auth/ADOrquYJBKCUm1iuPsxz9nsKYodPCulRks5tG9DKgaJpZM4RSHc3 .
Any idea what's causing it? Can we fix it in the math lib?
Running the code with sqrt(N-1.0) indeed compiles without problem on my machine. I saw a similar issue with lower and upper bounds of parameters where 1 and 1.0 produced rather different results. Not sure if it's related.
We have fixed it several times already, e.g.
https://github.com/stan-dev/math/issues/327
On Wed, Jan 3, 2018 at 2:37 PM, Bob Carpenter notifications@github.com wrote:
Any idea what's causing it? Can we fix it in the math lib?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/stan-dev/rstan/issues/477#issuecomment-355105753, or mute the thread https://github.com/notifications/unsubscribe-auth/ADOrqqjQzrFQJ8kSa98YMzRL1LAVg9ibks5tG9bwgaJpZM4RSHc3 .
I opened a new issue in stan-math (see above) and assigned it to myself. For some reason, sqrt()
didn't get the fix the other functions did. I'll try to get to the bottom of it, but may need help reproducing issue since it works OK as is on my machine.
Summary:
I tried to compile the code from section 9.2 in the stan-reference 2.17 ,i.e., the QR reparameterization of multiple linear regression and it fails with error message:
Description:
The following code is compiled:
which yields the following output.
Reproducible Steps:
Run the following R script
where "multiple_linear_regression_qr.stan" contains the code given above.
RStan Version:
The version of RStan is 2.17.2
R Version:
R version 3.4.3 (2017-11-30)
Operating System:
Linux einstein 4.13.0-21-generic #24-Ubuntu SMP Mon Dec 18 17:29:16 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
g++ (Ubuntu 7.2.0-8ubuntu3) 7.2.0