Skip to content

bmm v0.5.0

Compare
Choose a tag to compare
@venpopov venpopov released this 26 Mar 21:10
· 63 commits to develop since this release

New features

  • add a custom summary() method for bmm models (#144)
  • add a global options bmm.summary_backend to control the backend used for the summary() method (choices are "bmm" and "brms")
  • function restructure() now allows to apply methods introduced in newer bmm versions to bmmfit objects created by older bmm versions
  • you can now specify any model parameter to be a constant by using an equal sign in the bmmformula (#142)
  • you can now choose to estimate parameters that are fixed to a constant by default for all models (#145)
  • default priors for all models are now specified via the configure_prior() S3 method (#145)
  • cmdstanr will be used as the default backend for brms if the user has it installed (#145)
  • various updates to the documentation and data sets

Documentation

  • two new vignettes: vignette('bmm_bmmformula') and vignette('bmm_extract_info') showing how the bmmformula syntax differs from brms, and how to extract information about the default priors, the generated Stan code and Stan data for each model

Bug fixes

  • fix a bug preventing the sort_data check from being executed (#72)
  • fix bugs with the summary() function not displaying implicit parameters (#152) and not working properly with some hierarchical designs (#173)
  • fix a bug in which the sort_data check occurred in cases where it shouldn't (#158)

Deprecated functions and arguments

  • BREAKING CHANGE: remove get_model_prior(), get_stancode() and get_standata(). Due to recent changes in brms version 2.21.0, you can now use the brms functions default_prior, stancode and standata directly with bmm models.
  • the function fit_model() is deprecated in favor of bmm() and will be removed in a future version (#163)
  • the argument setsize for the mixture3p and IMM models is now called set_size for consistency. The old argument name is deprecated and will be removed in a future version (#163)
  • the distributions functions for the imm model are renamed from dIMM, pIMM, rIMM and qIMM to dimm, pimm, rimm and qimm (#163)
  • the argument parallel for the bmm() function is deprecated and will be removed in a future version. Use cores instead, as for brms::brm() (#163)
  • the models IMMfull(), IMMabc() and IMMbsc() are now called via imm(), imm(version = "abc") or imm(version = "bsc"). The old names are deprecated and will be removed in a future version (#163)
  • the sdmSimple() model is now called sdm(). The old name is deprecated and will be removed in a future version (#163)

Other changes

  • bmm now requires the latest version of brms (>= 2.21.0).