Learn R Programming

BayesianFactorZoo (version 0.0.0.3)

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

Description

Contains the functions to use the econometric methods in the paper Bryzgalova, Huang, and Julliard (2023) . 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.

Copy Link

Version

Install

install.packages('BayesianFactorZoo')

Monthly Downloads

47

Version

0.0.0.3

License

GPL-3

Maintainer

Jiantao Huang

Last Published

October 4th, 2024

Functions in BayesianFactorZoo (0.0.0.3)

BayesianSDF

Bayesian estimation of Linear SDF (B-SDF)
psi_to_priorSR

Mapping \(\psi\) (psi0) to the prior Sharpe ratio of factors (priorSR), and vice versa.
BFactor_zoo_example

Simulated Example Dataset 'BFactor_zoo_example'
BayesianFM

Bayesian Fama-MacBeth
Two_Pass_Regression

Fama MacBeth Two-Pass Regression
continuous_ss_sdf

SDF model selection with continuous spike-and-slab prior
dirac_ss_sdf_pvalue

Hypothesis testing for risk prices (Bayesian p-values) with Dirac spike-and-slab prior
continuous_ss_sdf_v2

SDF model selection with continuous spike-and-slab prior (tradable factors are treated as test assets)
SDF_gmm

GMM Estimates of Factors' Risk Prices under the Linear SDF Framework