Last chance! 50% off unlimited learning
Sale ends in
Retrieves Stan code files from the github repository, compiles then with rstan::stan_model
, and stores the compiled code in a central placed defined by the user with e.g. options(stancompiled='~/R/stan')
.
stanCompile
stanCompile(
mods = c("lrm", "lrmc", "lrmppo", "lrmcppo", "lrmcar1"),
repo = "https://raw.githubusercontent.com/harrelfe/stan/master"
)
character vector of base names of .stan
model files to compile. Default is to compile all those currently in use in rms
URL to online source file base
# NOT RUN {
# }
# NOT RUN {
options(stancompiled='~/R/stan') # need this always
stanCompile() # do this once per computer to compile centrally
# }
Run the code above in your browser using DataLab