4 ms·
There are a good range of other programming language interfaces to Stan. The R one is quite popular.[1] You do still need the C++ toolchain, but can just write
by phillc73 6y ago
There are a good range of other programming language interfaces to Stan. The R one is quite popular.[1]
You do still need the C++ toolchain, but can just write your code in R.
[1] https://mc-stan.org/rstan/ https://mc-stan.org/rstan/
- melling 6y agoThere’s a Julia Stan too: http://stanjulia.github.io/Stan.jl/stable/INTRO.html http://stanjulia.github.io/Stan.jl/stable/INTRO.html https://astrostatistics.psu.edu/su14/lectures/BayesComp2014LabMCMCv1.pdf https://astrostatistics.psu.edu/su14/lectures/BayesComp2014L...
- standevbob 6y agoStan requires models to be coded in the Stan language, which is a simple imperative language that's like MATLAB with explicit data types. This is the same as was done in Stan's predecessors, BUGS and JAGS. A Stan program can be run in any of our interfaces in Python, Julia, R, MATLAB, Stata, etc. But you can't mix any of those languages into a Stan program. The C++ toolchain is required because Stan transpiles its programs to C++, then compiles those against the Stan math librarym, which does autodiff. But you don't need to write any C++ to use Stan, just to develop extensions for it.