Skip to content

bboutools extensions#87

Open
sebdalgarno wants to merge 57 commits intomainfrom
extensions
Open

bboutools extensions#87
sebdalgarno wants to merge 57 commits intomainfrom
extensions

Conversation

@sebdalgarno
Copy link
Member

@sebdalgarno sebdalgarno commented Sep 23, 2025

Extensions to bboutools - integrating changes made in https://github.com/LandSciTech/bboutoolsMultiPop and other requested changes from ECCC

In order of commits:

With multi-population implementation, some outputs will appear different and this change is applied across the board whether it is single or multi-population.
image

If a user has scripts running previous bboutools functions on single populations, these functions will still run without failure (i.e., plotting, coef, predictions, etc.). Only issues arise if customized code was developed that:

  1. references index values of parameter estimates (i.e. now bAnnual[1,1] instead of bAnnual[1].
  2. references data.frame estimate output by column number position (i.e., due to new PopulationName column in data.frame).

sebdalgarno and others added 14 commits March 2, 2026 09:33
nimble 1.4.0 moved Laplace approximation to the nimbleQuad package.
The deprecated stubs in nimble fail with "attempt to set an attribute
on NULL" during compileNimble. Additionally, nimbleQuad returns generic
parameter names (param_trans_1, re_trans_1) on the transformed scale.

Fix by:
- Adding nimbleQuad to Depends so it is attached on load
- Using nimbleQuad::buildLaplace via getExportedValue
- Compiling the Laplace object in globalenv context so nimbleQuad
  internals (e.g. drop_algorithm) are found by the nimble compiler
- Patching transformed-scale summary names from the original-scale
  summary which still returns proper parameter names

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…ed, only added PopulationName to data.frame output and changed term naming convention (matrix to allow also vary population name)
…formative error when fit model with niters = 0
…d functions, add bbouNationalPriors to imports
…require additional if block around entire model to test that observations exist or not)
… attribute at model fit time to then be retrieved.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant