7 An outline of what goes where

A brief description of what (generally) goes into each the various files/folders.


  • Contains all the model functions and corresponding .fit functions (e.g. stan_glm and stan_glm.fit).

/exec and /inst/chunks

  • The /inst/chunks folder contains reusable snippits of Stan code. The /exec folder contains the Stan models that are used in the relevant R function. For example, continuous.stan contains all the models that can be declared by stan_glm (as well as some others). You can view the compiled model in R by executing rstanarm:::stanmodels$continuous.


  • Example data used in the examples/tests.


  • Templates for documentation.


  • Don’t edit any documentation here (changes will get overwritten when rebuilding the package).



  • Contains a bunch of helper functions.