NEWS


flexyBayes 0.19.0

flexyBayes 0.18.1

flexyBayes 0.18.0

For users of 0.10.0

0.10.0 was the last public release. These changes can stop an existing script or change its results. Each is described in full under its release below.

New since 0.10.0

In this release

flexyBayes 0.17.0

Changes to fitting

New features

Factor-analytic covariance

Other changes

Documentation

flexyBayes 0.16.0

Breaking changes

New features

Fixes to INLA results

New: a flag for weakly identified variance components

For packages that extend flexyBayes

Other fixes

Minor improvements

Documentation

Tests

flexyBayes 0.15.0

A feature release for two-stage analyses of a series of trials and for selection runs. A second stage can take the full covariance of the first stage's estimates, selection runs expose their fold data, a shrinkage prior can be confined to the candidate covariates, and parallel fold workers run as separate R processes. No model family or engine is added.

Two-stage analysis

Shrinkage on a block of candidates

Selection folds

Other fixes

flexyBayes 0.14.5

A patch release for fits with an AR1 field. The field's standard deviation now has the package's default prior, and whether the data support the field is tested against a fit without it. No model family, engine or exported function is added.

flexyBayes 0.14.4

A maintenance release. No model family, penalty family, engine or exported function is added, and no fit changes.

flexyBayes 0.14.3

A patch release for repeatable INLA fits. Identical calls now agree closely on the variance components. No model family, penalty family, engine or exported function is added.

INLA threads

flexyBayes 0.14.2

A patch release for selection on a weighted base. fb_select() carries the base model's observation weights on every route, re-estimates them in each fold on request, selects on a padded field whose added cells have no response, and runs a shared AR1 x AR1 field under prediction = "new_cluster". No model family, penalty family, engine or exported function is added. One change in behaviour: a weighted base on the projection decision now refuses, where 0.14.1 selected on the unweighted model without a message.

Observation weights in selection

Missing responses and the shared field

Refusal registry

flexyBayes 0.14.1

A patch release that fits the ASReml spellings of a shared AR1 x AR1 field and of aliased fixed effects the way ASReml 4.2 does, and makes penalised selection converge on grouped candidates. Two changes can stop a model that fitted in 0.14.0: at(trial):ar1(row):ar1(col) now refuses, and id(trial) is the spelling of the shared field. flexybayes() refuses fixed-effect columns the data do not estimate unless fixed_alias = "drop" is given.

Models written as in ASReml

Penalised selection

Reporting

Authors

flexyBayes 0.14.0

The release for a two-stage analysis of a designed multi-environment trial. Penalised selection can now take its fold covariance from a refit of the base model, carry known first-stage variances into the second stage, value the support the optimiser chose by held-out log predictive density, and rank declared blocks by what removing each one costs in held-out loss. Each engine fit and each fold can run in its own process. One internal function is removed, and the statements the package makes about INLA and brms are checked against the engines.

Selection for a two-stage design

Selection read-outs

Fitting in a separate process

Refusals and corrections

What the package states about the engines

Documentation and messages

Removals

flexyBayes 0.13.1

A patch release for penalised selection. It adds two read-outs of a penalised path and holds every point on the path to one optimality certificate. No model family, penalty family, engine or exported function is added.

Selection read-outs

Optimality certificates

Documentation

flexyBayes 0.13.0

This release makes the selection and large-MET substrate materially safer and more reproducible. It is sufficient for the model-fitting and variable- selection stages of the planned nert workflow. Study-specific data assembly, the M0--M2 orchestration and reporting remain in the study repository.

Selection at scale

Model and data integrity

API consolidation

Known limits

flexyBayes 0.12.1

A containment release. An INLA fit whose hyperparameter lies outside the bound of a stated prior is refused by name, the capability record the package installs is generated from the live registry, and the README and known issues state what each engine fits at the level the evidence supports. No model family, penalty family, engine or exported function is added.

Breaking changes

Claims and evidence

flexyBayes 0.12.0

The model a fit reports is the model it ran. Gaussian models on INLA are fitted per row on a standardised response, default priors follow the units of the response and of each covariate, offsets fit on both engines, a stated bound on a standard deviation binds (corrected in 0.12.1: INLA can still return a mode outside the bound, and 0.12.1 refuses such a fit), and every fit records which prior reached which engine slot as the engine reports it back. No model family, penalty family, engine or exported function is added.

Breaking changes

The fitted model is the written model

Selection

Smaller fixes

Documentation

Refusals

The registry holds 204 codes, 187 at 0.11.0. New in this release: aggregation_residual_prior_not_composed, aggregated_evidence_unavailable, correlated_covariance_requires_brms, fixed_offset_unsupported, fixed_offset_invalid, newdata_offset_missing, projection_metric_unsupported, prior_family_has_no_residual_scale, prior_vc_sd_superseded_by_prior, evidence_not_computed, response_not_finite, streamed_rows_not_retained, update_streamed_fit_not_supported, augment_not_available_inla, log_density_producer_unavailable, predict_link_not_supported and marginaleffects_link_not_supported.

flexyBayes 0.11.0

fb_select() becomes a Bayesian verb. It fits a reference model in which a declared block of candidate fixed effects carries a joint shrinkage prior and the covariance structure is integrated over, not plugged in. It selects a parsimonious submodel by projection predictive inference where the reference model's structure permits it, and refuses by name where it does not. On request, it triangulates the result against an external penalised optimiser on the same folds. It does not claim that posterior summaries are numerically identical to glmnet, and there is no configuration under which a penalised mode is reported under a Bayesian label.

Breaking changes

New

Every comparison declares what it does and does not claim

Three equivalence levels, and every stored comparison carries exactly one.

A Bayesian arm always integrates the covariance and leaves the residual scale free, so a glmnet benchmark beside it is posterior_predictive_comparable for ridge, laplace and elastic net, and no_identity_expected for the regularised horseshoe and R2D2. The words "same as glmnet" appear nowhere unqualified.

The glmnet conventions are measured, not recalled

Under glmnet 5.0 on this machine, with standardize = FALSE, intercept = FALSE and a convergence threshold of 1e-16, the map from the canonical objective 0.5 ||z - A beta||^2 + pen(beta) to glmnet's own lambda was measured against two references independent of glmnet, the ridge closed form and the canonical KKT residual.

The convention is measured at run time by .fb_sel_glmnet_convention(), stored on the provider certificate as provider_lambda_convention, and pinned by a test. A change in glmnet's convention fails that test instead of moving the answer silently.

Projection refuses two structures it was measured against

projpred 2.10.0's reference-model constructor was exercised cell by cell. Two structures the package fits are refused, and the refusal names the feature:

us() and fa() translations and heterogeneous residual structures have no executed gate, so they refuse with projection_structure_unsupported too. Turning any of those rows green requires a test that runs it.

Adequacy is a gate, not a note

Before any decision runs, the reference model must pass two checks. The tri-state convergence contract reads divergences, treedepth saturation, E-BFMI and bulk and tail effective sample size. A fail refuses with penalty_sampler_diagnostics_failed. An unverified verdict is carried on the certificate and printed, and is not treated as a pass. A posterior predictive check on the observed mean and standard deviation must place both inside (0.005, 0.995), else penalty_reference_model_inadequate. A projection inherits the reference model's misfit.

For the regularised horseshoe the count of coefficients whose shrinkage factor falls below one half is reported against p0, labelled orthogonal_design_kappa_approx: the scalar formula holds for a standardised near-orthogonal design, and a correlated candidate block does not have one shrinkage factor per coefficient at all.

Three silent wrong answers closed

Found by the 2026-09-12 audit of this release's own selection work. Each one fired on the formulas the module exists to serve, not on an edge case.

The structure gate leads, and it chooses the decision

Projection predictive inference is the right Bayesian decision given a reference posterior, and it is available for a minority of what this package fits. The gate that says so was executed and accurate, and it was reported after the fact.

glmnet is a check that cannot be misread

posterior_predictive_comparable says the arms were scored "on the same folds, target, loss, unit and candidate design". The Bayesian penalised route wrote no out-of-fold score at all (it set aggregated = NULL), so the label was printed about a comparison that had not been made.

An INLA-fitted base can carry a shrinkage prior

fb_select() fits the reference model through brms whatever fitted the base. The parsed model is engine-independent, and the reference is a re-emission of it with an extended fixed part and the base's own priors carried through the brms prior translation. lgm_gate()'s twelfth check nevertheless ran on the BASE's intermediate representation whenever the base was INLA, so a user with an INLA fit asking for a Laplace prior was told the prior was impossible on INLA, about a fit that was never going to INLA.

The check no longer runs on the base. An INLA-fitted base with a joint shrinkage prior samples on brms. The certificate records reference_engine = "brms", the print method and the plan say the base was fitted by a different engine, and the certificate carries reference_fitted_on_brms among its approximations. No public call reaches the check: fb_select() is the only verb that takes a shrinkage prior, and it always fits on brms. The check stays as an internal guard.

The prior is calibrated against the information that is there

The correlated random slope on INLA is demoted to an analogue

A validation run against ASReml 4.2.0.392 and lme4 found that (x | g) on INLA carries the defect the us(f):g row was demoted for, on a second route, through the iid2d field instead of iidKd.

On lme4::sleepstudy the slope variance comes back at 46.37 at the posterior mode (52.10 at the mean, 50.19 at the median), against 35.076 in ASReml and 35.072 in lme4. That is 32 per cent high at the mode, which is the summary a REML estimate is comparable to, while the intercept variance on the same fit is 7 per cent high and the residual 0.4 per cent. Rescaling the response by ten is an exact transformation under which a correlation is invariant, and it moves the reported intercept-slope correlation from 0.02 to 0.969 while REML holds at 0.066. The ratio of the intercept standard deviation to the residual doubles on the same transformation. The numerical-confirm gate does not separate the two: the unscaled fit reports mode status 0 and passes it on every call, and the rescaled fit passes it on some calls and not others: five identical tenfold calls returned mode status 0, 0, 0, 2 and 6. The one protection a user has here therefore stays quiet on the fit that is wrong.

The row is reclassified from covariance-family to analogue in the translation registry, with the measurement recorded in the row. The change propagates to inst/TRANSLATION.md, the shipped CSV, and, through the capability matrix, to README.md and inst/KNOWN_ISSUES.md, where it is open issue 2 beside the us() row.

fb_select() refuses a base that carries the term on INLA (selection_base_not_allowlisted), because the selection substrate whitens by the base's own covariance and a block that is a third too large would set the rotation every score is read through. The refusal quotes the measurement and names the brms route, which the comparison did not exercise and which writes (x | g) natively. A brms base carrying the term stays admitted, and a test asserts that it does.

The scale-invariance check in tests/testthat/test-metamorphic-scale-invariance.R gains the sibling tripwire. It asserts the ratio of the slope standard deviation to the residual, not the correlation: across three identical unscaled fits the ratio reproduces to the third digit while the correlation spans 0.048, and a metamorphic gate is only as reproducible as the component it reads. As with us(), the tripwire fails when the defect goes away and its message names the records to close. The cause is not established and is shared between the two routes, so a repair has to cover both.

ranef() on an INLA fit reports the levels the user wrote

.fb_random_inla() restored a level label only where INLA returned the ID column as CHARACTER, which is what a plain ~ g produces because INLA is handed the factor itself. Every structured term is indexed by an integer column the emitter builds, so ID came back as 1 ... n and the guard never fired: rep:block on agridat::john.alpha reported levels "1" to "18" where ASReml reports rep_R1:block_B1 ..., and (Days | Subject) on lme4::sleepstudy reported "1" to "36" with the subject identifiers sitting unused on the fit.

Two of the four BLUP comparisons in the September validation programme could not be made at all. Aligning by row order was not attempted: interaction() orders rep fastest and ASReml orders it slowest, so a positional match would have been silently wrong on exactly the row where it looked easiest.

Levels now come from the grouping factor itself, composed in the order the emitter's index uses and in the user's own labels, not the legalised ones. An interaction group reports the interaction level, R1:B1, with the separator its group name already uses.

The correlated random slope also returned two list elements under one name, because both of its index names mapped to the single label <x> | <g>, and ranef(fit)[["Days | Subject"]] reached one of the two blocks with nothing to say which. The two blocks are now named for what they hold, (Intercept) | <g> and <x> | <g>, and each reports the group's own levels over its own half of the iid2d field instead of the whole field twice.

Documentation

Refusals

The registry moves from 163 codes to 184. selection_penalty_not_implemented is withdrawn, because the penalty is implemented and nothing throws it any more. New in this release: selection_penalty_spec_malformed, selection_penalty_target_unsupported, selection_penalty_target_not_in_model, selection_penalty_target_ambiguous, selection_penalty_family_unknown, selection_penalty_family_withdrawn, penalty_hyperparameter_invalid, penalty_block_overlap, penalty_block_targeting_unsupported, penalty_factor_contrast_ambiguous, penalty_scaling_column_constant, penalty_sampler_diagnostics_failed, penalty_reference_model_inadequate, penalty_runtime_budget_exceeded, projection_structure_unsupported, projection_family_unsupported, selection_provider_absent, selection_fallback_not_authorised, selection_prox_mode_not_converged, selection_penalty_blocks_not_expressible, prior_family_unsupported_inla and selection_decision_invalid. Each is registered beside the site that throws it and each is fired by a test.

The audit close adds three more, taking the registry to 187: selection_scoring_unit_mismatch, projection_search_unsupported and penalty_candidate_columns_unscaled.

Dependencies

Suggests gains projpred and glmnet. Nothing moves to Imports, the package loads and checks with neither installed, and every provider-requiring test is gated on the provider being present.

flexyBayes 0.10.0.9000

flexyBayes 0.10.0

The first release prepared for CRAN. Its criteria are held as a runnable contract in the development repository. The checks that read source answer immediately. The ones that need a build, a check run or a person are listed as unmet until their artefact exists, and the contract exits non-zero while any of them is outstanding. That file is not shipped in the tarball.

Breaking changes

Diagnostics

Documentation

Corrections to the package's own claims

Each of these was a statement the code did not support. Each is recorded here as a fix, and each has a guard that fails the lint workflow if it recurs.

flexyBayes 0.9.3

This is the first public release of the 0.9 line. Versions 0.9.0 to 0.9.2 were staged locally and never published. Their sections below stand as the record of what changed between 0.8.3 and this release.

Breaking changes

New features

Bug fixes

Documentation

Validation record

flexyBayes 0.9.2

Bug fixes

New features

Documentation

Internal

flexyBayes 0.9.1

Work aimed at the reader who arrives from ASReml with last season's asreml() call in hand, and who should be able to read the answer without opening $inla or $brms.

New features

Breaking changes

Minor improvements and fixes

flexyBayes 0.9.0

A stable release of the supported capability set, ready for testing. It is published as a pre-release while the first collaborator round completes. Entries appear newest-first within each section, so where a later change supersedes an earlier one on the same line (the greta quarantine over the greta-only MET route, for instance), the superseding entry is the one above.

Licence

Vignette rendering

The plan, the build and the fit agree

Fidelity of names

Triangulation is a gated diagnostic

Priors reach more of the model

The combined multi-environment-trial model fits

Heterogeneous variances

Missing responses preserve the design

Model-fidelity fixes

Reshape: two-engine faithful core (brms + INLA)

New features

Bug fixes

Breaking changes

flexyBayes 0.8.3

A documentation-accuracy and ergonomics release on the 0.8.x line. There are no modelling-behaviour changes. The additions are accessor coverage, clearer refusals, and metadata / vignette consistency for the first public development release.

New features

Minor improvements and fixes

flexyBayes 0.8.2

New features

flexyBayes 0.8.1

A hub-ergonomics release: a single broom dialect across the three backends, two standalone maximum-likelihood fitters for distributions outside the GLM emit path, and an INLA-led multi-environment-trial vignette.

New features

Minor improvements and fixes

flexyBayes 0.8.0

Genomics and MET expansion

Triangulation accuracy

Engine reliability and diagnostics

Usability

Lean-core split

Methodology

Documentation

flexyBayes 0.7.0

Note (current state). The orchestra-composition features described in this section (the ensemble-source data contract, simulator-derived priors, the surrogate emulators and predictive checks, and the dormant fourth-opinion slot) were later extracted to the companion package flexyBayesOrchestra (see the lean-core split under 0.8.0 above). They are no longer part of the flexyBayes exported surface. The entries below record the 0.7.0 history.

This release reconciles three parallel development streams onto the engine, data, and surrogate axes: gretaR activated as a fourth inference engine (the engine axis), the ensemble-source data contract and its first consumers (the data axis), and the surrogate carried end-to-end from a reference emulator to a distribution-preserving predictive check (the surrogate axis).

New features

Bug fixes


Older release history (0.6.0 and earlier) lives in NEWS_ARCHIVE.md.