Difference between revisions of "Helix/Software/R/Rstan"

From bwHPC Wiki
< Helix‎ | Software‎ | R
Jump to: navigation, search
(Created because people kept using the UC2 instructions to their detriment)
 
 
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

1 General information

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

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)