Conference paper Open Access

Computing steady states with Stan's nonlinear algebraic solver

Margossian, Charles

Stan’s numerical algebraic solver can be used to solve systems of nonlinear algebraic equations with no closed form solutions. One of its key applications in scientific and engineering fields is the computation of equilibrium states (equivalently steady states). This case study illustrates the use of the algebraic solver by applying it to a problem in pharmacometrics. In particular, I show the algebraic system we solve can be quite complex and embed, for instance, numerical solutions to ordinary differential equations. The code in R and Stan are provided, and a Bayesian model is fitted to simulated data.

Code and data available at
Files (4.2 MB)
Name Size
4.2 MB Download
All versions This version
Views 262262
Downloads 148148
Data volume 615.9 MB615.9 MB
Unique views 250250
Unique downloads 134134


Cite as