I’m just learning Stan using Rstan. I have successfully programed some basic linear regressions (one dependent and one independent variable). But I evidently don’t understand how to right the correct script to change adapt_delta. Here is the line of Rstan code that runs one of my regression programs that conducts a simple hierarchical regression for 5 populations:

fit<-stan(file = ‘SR5H2.stan’, data = stanDat, init=list(list(beta=rep(15000,5), logalpha=rep(1.9,5))), iter = 1000, chains = 1).

Two questions:

- What is the correct code to add to this for controlling adapt_delta?
- What is the correct code to add to modify the init list to apply the inits to more than one chain?

Obviously, I’m not an adept R user.

Thanks for any help.

Nick