Releases: FBartos/BayesTools
Releases · FBartos/BayesTools
Release list
BayesTools 0.3.0
Features
- major refactoring and speed-up of unit tests
- adds support for
__default_factorand__default_continuouspriors inJAGS_formula()- when specified in theprior_list, these are used as default priors for factor and continuous predictors that are not explicitly specified - adds automatic standardization of continuous predictors via
formula_scaleparameter inJAGS_formula()andJAGS_fit()- improves MCMC sampling efficiency and numerical stability - adds
transform_scale_samples()function to transform posterior samples back to original scale after standardization - adds
transform_prior_samples()function to generate and transform prior samples using the same matrix transformation as posterior samples - enables correct visualization of priors on the original (unscaled) predictor scale, including proper handling of the intercept which depends on multiple coefficient priors - adds
transform_scaledargument toplot_posterior()for visualizing prior and posterior distributions on the original (unscaled) scale when using formula-based models with auto-scaling - adds
exp_lintransformation type for log-intercept unscaling in density/plotting functions:exp(a + b * log(x)) - adds
log(intercept)formula attribute for specifying models of the formlog(intercept) + sum(beta_i * x_i)- useful for parameters that must be positive (e.g., standard deviation) while keeping the intercept on the original scale. Set viaattr(formula, "log(intercept)") <- TRUE. Supported inJAGS_formula(),JAGS_evaluate_formula(), and marginal likelihood computation - adds advanced parameter filtering options to
runjags_estimates_table():remove_parameters = TRUEto remove all non-formula parametersremove_formulasto remove all parameters from specific formulaskeep_parametersto keep only specified parameterskeep_formulasto keep only parameters from specified formulas- when
biasis specified inremove_parametersorkeep_parameters, the corresponding bias-related parameters (PET,PEESE,omega,alpha,pi_null, andphack_kind) are automatically included based on the bias prior type
- adds
probsargument torunjags_estimates_table()andrunjags_estimates_empty_table()for custom quantiles (default:c(0.025, 0.5, 0.975)) - adds
effect_directionargument toplot_posterior(),plot_prior_list(),lines_prior_list(), andgeom_prior_list()for PET-PEESE regression plots - use"positive"(default) formu + PET*se + PEESE*se^2or"negative"formu - PET*se - PEESE*se^2 - redesigns
prior_weightfunction()around a unifiedside,steps, andweightsspecification, withwf_cumulative(),wf_fixed(), andwf_independent()constructors for cumulative Dirichlet, fixed, independent, and log-independent weightfunction priors - adds p-hacking and composed selection-bias priors via
prior_phacking(),prior_bias(), calibration helpers, andselection_backend_spec()for compiling active step/p-hacking backend parameters - adds error % for inclusion BF calculation
Changes
- changes quantile column names in
runjags_estimates_table()andstan_estimates_table()fromlCI/Median/uCIto numeric values (e.g.,0.025/0.5/0.975) for consistency with ensemble summary tables - implied prior distributions for estimated marginal means, unstandardized coefficients, and PET-PEESE no longer require prior samples
- implied prior distributions for weightfunction weights now use analytical forms for cumulative Dirichlet, fixed, independent, and log-independent priors, including mixture and model-averaged weightfunctions where possible
- independent weightfunction priors now allow non-reference weights above one via non-negative omega-scale priors or unrestricted log-omega priors
- replaces the legacy dot-named weightfunction prior specifications with the unified weightfunction prior API and updates JAGS generation, marginal likelihood computation, posterior extraction, diagnostics, and summary tables to use the new component-local
omegarepresentation - composed selection-bias priors and publication-bias mixtures now support prior sampling and explicit unsupported-operation errors for ambiguous scalar prior generics
Fixes
- reports inclusion Bayes factors as
NAwhen the prior assigns probability 0 or 1 to inclusion, while keeping finite-sample bounds for posterior inclusion probabilities of 0 or 1 - fixes incorrect ordering the printed mixture priors
- fixes formula with no intercepts coded as
0(instead of only-1) - fixes bug in
.is.wholenumberwith NAs andna.rm = TRUE - fixes ggplot prior spike layers for marginal factor plots with density and point components
BayesTools 0.2.23
Fixes
JAGS_diagnosticsfunctions now correctly handle factor parameters nested within mixture priors
BayesTools 0.2.22
version 0.2.22
Fixes
plot_posterior()function with spike and slab priors
BayesTools 0.2.21
Fixes
JAGS_formula()function now replaces removed missing intercept with 0 (so the model matrix remains unchanged)- resetting
silent = FALSEargument in theJAGS_fit()function now fits the model non-silently again
BayesTools 0.2.20
Features
- extending prior functions to accept
expression()instead of a parameter, such objects can be use to create prior distributions that depend on other parameters in JAGS - extending the formula interface of
JAGS_fit()function to accept expressions that are appended as literal text to the generated JAGS formula - extending the formula interface of
JAGS_fit()function to handle uncorrelated random effects via(x||y)(lme4-like) notation
Fixes
JAGS_estimates_tablenot printing formula prefix when only spike and slab priors are supplied
BayesTools 0.2.19
Features
- adds
max_extendoption toautofit_controlargument inJAGS_fit()to limit the number of iterations for the model extension - adds JASP progress bar integration
Fixes
JAGS_diagnostics_density()plots for mixture distributions- prior and posterior
plot_posterior()for simpleas_mixed_posteriorsobjects JAGS_evaluate_formula()for mixture and spike and slab priors- set Bayes factors based on alternative only prior distributions to NA
- better handling of posterior samples in
.fit_to_posterior()
BayesTools 0.2.18
Features
- adding
prior_mixture()function for creating a mixture of prior distributions - adding
as_mixed_posteriors()andas_marginal_inference()functions for a single JAGS models (with spike and slab or mixture priors) to enabling tables and figures based on the corresponding output - adding
interpret2()function for another way of creating textual summaries without the need of inference and samples objects - speedup and improvements to the
runjags_estimates_table()function
Fixes
- small fixes for expansion of the RoBMA functionality
BayesTools 0.2.17
Features
- adding informed prior distributions for dichotomous and time-to-event outcomes based on Cochrane Database of Systematic Reviews to
prior_informed()function - adding bridge object convenience function
bridge_object()(fixes: #28) - adding
Na/NaNtests forcheck_functions (fixes: #26)
Fixes
- ability to run more than 4 chains (fixes: #20)
BayesTools 0.2.16
Features
- update an existing JAGS fit with
JAGS_extend()function - new element of the
autofit_controlargument inJAGS_fit():"restarts"allows to restart model initialization up torestartstimes in case of failure
BayesTools 0.2.15
Fixes
- fixing repeated print of previous prior distribution in
model_summary_table()in case ofprior_none()