rstanarm
rstanarm copied to clipboard
Error: passing unknown arguments: warmup in stan_jm()
Summary:
not able to set warmup parameter in Stan_jm() function
Description:
When I am trying to change default warmup parameter, stan_jm() giving an Error: passing unknown arguments: warmup. In sampling function from rstan I can see the warmup parameter with default value floor(iter/2)
Reproducible Steps:
The code I am running from the example section in rstanarm
f1 <- stan_jm(formulaLong = logBili ~ year + (1 | id), dataLong = pbcLong, formulaEvent = Surv(futimeYears, death) ~ sex + trt, dataEvent = pbcSurv, time_var = "year", # this next line is only to keep the example small in size! chains = 1, cores = 1, algorithm = "sampling",seed = 12345, iter = 1000,warmup = 100)
RStanARM Version:
2.21.3
R Version:
4.2.1
Operating System:
macOS Monterey 12.5
Might help to see the full traceback? Is the error coming from rstanarm itself, or possibly from rstan?
Could this be incompatibility with a recent release of rstan (although looks like one hasn't been release to CRAN since April... https://cran.r-project.org/web/packages/rstan/index.html)?
On Wed, 10 Aug 2022 at 18:11, Devashish Tripathi @.***> wrote:
Summary:
not able to set warmup parameter in Stan_jm() function Description:
When I am trying to change default warmup parameter, stan_jm() giving an Error: passing unknown arguments: warmup. In sampling function from rstan I can see the warmup parameter with default value floor(iter/2) Reproducible Steps:
The code I am running from the example section in rstanarm
f1 <- stan_jm(formulaLong = logBili ~ year + (1 | id), dataLong = pbcLong, formulaEvent = Surv(futimeYears, death) ~ sex + trt, dataEvent = pbcSurv, time_var = "year",
this next line is only to keep the example small in size!
chains = 1, cores = 1, algorithm = "sampling",seed = 12345, iter = 1000,warmup = 100) RStanARM Version:
2.21.3 R Version:
4.2.1 Operating System:
macOS Monterey 12.5
— Reply to this email directly, view it on GitHub https://github.com/stan-dev/rstanarm/issues/571, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEVECTGV66HQVQBKQJNK4YTVYNP3FANCNFSM56DRNINQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>