Hoffman2:Software Tools:brms

From Center for Cognitive Neuroscience
Revision as of 23:24, 26 July 2022 by Hwang (talk | contribs)
Jump to navigation Jump to search

Use R library brms in Hoffman

module load R/4.1.2
module load gcc/5.3.0
export R_LIBS='/u/project/CCN/apps/R_libs/rh7/4.1.2

Start R

R
>require(rstan)
>require(brms)

To run a test of brms (load rstan and brms first as above)

>fit1 <- brm(count ~ zAge + zBase * Trt + (1|patient),
data = epilepsy, family = poisson())