Helix/Software/R/Rstan: Difference between revisions

From bwHPC Wiki
< Helix‎ | Software‎ | R
Jump to navigation Jump to search
(Created because people kept using the UC2 instructions to their detriment)
 
No edit summary
 
Line 2: Line 2:


rstan provides the R interface for [https://mc-stan.org/ Stan], a platform for statistical modeling and high-performance statistical computation.
rstan provides the R interface for [https://mc-stan.org/ 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.


= Installation =
= Installation =

Latest revision as of 10:17, 12 October 2023

General information

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

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.

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)