brm
, which creates the model in Stan language and fits it using the package rstan, if installed. Subsequently, methods suchs as summary
or plot
can be applied to investigate the obtained results
Without having rstan installed, the function brm
will not return posterior samples, but all prerequisites to fit the model in Stan, such as the model code and the relevant data. If rstan is installed, the model is fitted automatically. Unfortunately, rstan has to be installed manually, as it is not on CRAN, yet. However, the developers of Stan and rstan are currently working on a version to be uploaded on CRAN. In the meantime, instructions on how to install rstan can be found at brm
, brmsfit