BayesianFactorZoo: Bayesian Solutions for the Factor Zoo: We Just Ran Two Quadrillion Models

Contains the functions to use the econometric methods in the paper Bryzgalova, Huang, and Julliard (2023) <doi:10.1111/jofi.13197>. In this package, we provide a novel Bayesian framework for analyzing linear asset pricing models: simple, robust, and applicable to high-dimensional problems. For a stand-alone model, we provide functions including BayesianFM() and BayesianSDF() to deliver reliable price of risk estimates for both tradable and nontradable factors. For competing factors and possibly nonnested models, we provide functions including continuous_ss_sdf(), continuous_ss_sdf_v2(), and dirac_ss_sdf_pvalue() to analyze high-dimensional models. If you use this package, please cite the paper. We are thankful to Yunan Ding and Jingtong Zhang for their research assistance. Any errors or omissions are the responsibility of the authors.

Depends: R (≥ 3.5.0)
Imports: MCMCpack, reshape2, MASS, timeSeries, coda, mvtnorm, matrixcalc, ggplot2, nse, Rdpack, stats, utils, Matrix
Published: 2023-11-14
Author: Svetlana Bryzgalova [aut], Jiantao Huang [cre], Christian Julliard [aut]
Maintainer: Jiantao Huang <huangjt at>
License: GPL-3
NeedsCompilation: no
In views: Finance
CRAN checks: BayesianFactorZoo results


Reference manual: BayesianFactorZoo.pdf


Package source: BayesianFactorZoo_0.0.0.2.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): BayesianFactorZoo_0.0.0.2.tgz, r-oldrel (arm64): BayesianFactorZoo_0.0.0.2.tgz, r-release (x86_64): BayesianFactorZoo_0.0.0.2.tgz, r-oldrel (x86_64): not available
Old sources: BayesianFactorZoo archive


Please use the canonical form to link to this page.