Helix/Software/R/Rstan

From bwHPC Wiki
< Helix‎ | Software‎ | R
Revision as of 10:06, 12 October 2023 by H Winkhardt (talk | contribs) (Created because people kept using the UC2 instructions to their detriment)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

1 General information

rstan provides the R interface for Stan, a platform for statistical modeling and high-performance statistical computation.

To be compatible with our R installation, we recommend to install the development version of rstan.

2 Installation

On Helix, rstan can be installed without any major changes to the surroundings. You can run

> install.packages("rstan")

in R on a Login-node to install rstan.

2.1 Testing the installation

To check whether the installation worked, make a test run in R

> library(rstan)
> example(stan_model, package = "rstan", run.dontrun = TRUE)