Skip to content

Commit

Permalink
update NEWS, switch back to cmdstanr default optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
helske committed Jan 18, 2024
1 parent 74a4ba3 commit 4b3694f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: dynamite
Title: Bayesian Modeling and Causal Inference for Multivariate
Longitudinal Data
Version: 1.4.8
Version: 1.4.9
Authors@R: c(
person("Santtu", "Tikka", email = "santtuth@gmail.com",
role = c("aut", "cre"), comment = c(ORCID = "0000-0003-4039-4342")),
Expand Down
5 changes: 5 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# dynamite 1.4.9
* Added option to input custom model code for `dynamite` which can be used to
tweak some aspects of the model (no checks on the compatibility with the post processing are made).
* Changed the default optimization level for `cmdstanr` backend to `O0`, as the `O1` is not necessarily stable in all cases.

# dynamite 1.4.8

* Made several performance improvements to data parsing.
Expand Down
5 changes: 3 additions & 2 deletions R/dynamite.R
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@
#' @param stanc_options \[`list()`]\cr This is the `stanc_options` argument
#' passed to the compile method of a `CmdStanModel` object via
#' [cmdstanr::cmdstan_model()] when `backend = "cmdstanr"`.
#' Defaults to `list("O1")` to enable level one compiler optimizations.
#' Defaults to `list("O0")`. To enable level one compiler optimizations,
#' use `list("O1")`.
#' @param threads_per_chain \[`integer(1)`]\cr A Positive integer defining the
#' number of parallel threads to use within each chain. Default is `1`. See
#' [rstan::rstan_options()] and [cmdstanr::sample()] for details.
Expand Down Expand Up @@ -157,7 +158,7 @@
dynamite <- function(dformula, data, time, group = NULL,
priors = NULL, backend = "rstan",
verbose = TRUE, verbose_stan = FALSE,
stanc_options = list("O1"),
stanc_options = list("O0"),
threads_per_chain = 1L, grainsize = NULL,
custom_stan_model = NULL, debug = NULL, ...) {
dynamite_check(
Expand Down

0 comments on commit 4b3694f

Please sign in to comment.