RStan 2016

From HPC users
Jump to navigationJump to search

Introduction

RStan is the R interface to Stan. Stan is a platform for statistical modeling and high-performance statistical computation. Stan can be used for for statistical modeling, data analysis, and prediction in the social, biological, and physical sciences, engineering, and business.


== Installed version(s)

This version is installed and currently available on environment hpc-env/6.4:

RSTAN/2.19.2-intel-2018a-R-3.6.1

Using RStan

If you want to find out more about RStan on the HPC Cluster, you can use the command

module spider RStan

This will show you basic informations e.g. a short description and the currently installed version.

To load the desired version of the module, use the command, e.g.

module load hpc-env 6.4
module load RStan

Always remember: this command is case sensitive!


To load and use RStan within R, you have to type in as follows:

module load hpc-env/6.4                      # load the right environment
module load RStan                            # load RStan, R, and any other dependency needed
R                                            # load R 
library("rstan")                             # observe startup messages
options(mc.cores = parallel::detectCores())  # multicore optimization
rstan_options(auto_write = TRUE)             # avoid recompiling


Now, you are ready to use RStan within R.

Documentation

For more information on how to get started click here. For more information about Stan click here and about RStan click here.