Hi there, I am trying to create named output_files, so I can automate tracking the modelling progress. However, I am at a loss on how to do this. Any help appreciated.
require(brms)
require(cmdstanr)
prior1 <- prior(normal(0,10), class = b) +
prior(cauchy(0,2), class = sd)
fit1 <- brm(count ~ zAge + zBase * Trt + (1|patient),
data = epilepsy, family = poisson(), prior = prior1,
backend='cmdstanr',
output_dir=".",
save_latent_dynamics=T,
output_dir=".",
#basename = "test", timestamp = FALSE, random = FALSE,
#output_files=list(dir = ".", basename = "test", timestamp = FALSE, random = FALSE),
threads=threading(4),
save_pars = save_pars(latent = TRUE),
iter=5000,
warmup=500,
chains=4,
refresh=10,
seed=666)
Thanks
Herry