I was running simple nonlinear regression on R stan. The when I add argument control=list(max_treedepth=15)
to the stan
function. The system crashes. This happens repeatedly.
init_fun <- function(...) list(k=nlr.summ$parameters[1], mu=nlr.summ$parameters[2], r=nlr.summ$parameters[3])
data <- list(N=N, y=y, t=t)
fit <- stan(file='./SDCSCOV/lulu1u1d.stan', data=data, init=init_fun, iter=3000, control = list(max_treedepth = 15))
I tried it in terminal, same error happened. My device is Apple M1.
Is there any possible solutions or suggestions to this?