Is there any way to re use stan program?

model <- brm(Reads | trials(y) ~ x1+x2, data = datain, family = binomial,  chains = 5, iter = 4000, control = list(adapt_delta = 0.99, max_treedepth=13))

I want to apply the same formula/stan code to other datasets, is there anyway to reuse the program without compling?

update(model, data = newdata) should not require a recompilation I think.

Thanks very much!!! It works!!!

1 Like