-
Notifications
You must be signed in to change notification settings - Fork 47
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 in checking Stan version & eight schools example #61
Comments
Thank you! I had the same issue running MATLAB version 9.12.0.1956245 (R2022a) Update 2 on Ubuntu 20.04.4. Your fix on line 850 of StanModel.m worked! |
The regex to check the Stan version will be more robust if we: 1) *match* on the first string of numerals and dots following a "v": '(?<=v)[0-9\.]+' 2) *split* on "." and cast the chunks to integers as before On branch master Changes to be committed: modified: StanModel.m
Hey, I have the same issue running Matlab version (R2020a) on 64 bit windows 10. I did the line change in StanModel.m. I can pass the error described above. But now, I have a new error after modification of StanModel.m. Any thoughts? Thank you!!
|
I've solved the problem by hard code the ver = '2.22.0'. |
I am using MATLAB version 9.9.0.1718557 (R2020b) Update 6 on macOS Mojave Version 10.14.6.
Going through the eight schools example in Getting Started. This is my output.
Solution:
Change line 850 in StanModel.m:
ver = cellfun(@str2num,regexp(str{3},'\.','split'));
tover = cellfun(@str2num,regexp(str{2}(2:end),'\.','split'));
Also, eight_schools.stan does not match what is in the example and will give an error: eta is undefined.
The text was updated successfully, but these errors were encountered: