CRAN Task View: Empirical Finance
Maintainer: Dirk Eddelbuettel
Date: 2024-11-09
This CRAN Task View contains a list of packages useful for empirical work in Finance, grouped by
topic.
Besides these packages, a very wide variety of functions suitable for empirical work in Finance is
provided by both the basic R system (and its set of recommended core packages), and a number of
other packages on the Comprehensive R Archive Network
(CRAN). Consequently, several of the other CRAN Task Views may contain
suitable packages, in particular the r view("Econometrics")
, r view("Optimization")
,
r view("Robust")
, and r view("TimeSeries")
Task Views.
The ctv
package supports these Task Views. Its functions install.views
and update.views
allow,
respectively, installation or update of packages from a given Task View; the option coreOnly
can
restrict operations to packages labeled as core below.
Contributions are always welcome and encouraged, either via e-mail to the
maintainer or by submitting an issue or pull request in the
GitHub repository linked above. See the Contributing
page in the CRAN Task
Views repo for details.
r view("Econometrics")
task view. This is complemented by the r view("Robust")
task view, whichlm()
(from by the statsoptim()
function. Many other suitable methods are listed in ther view("Optimization")
view. Non-linear least squares can be estimated with the nls()
nlme()
from the r pkg("nlme")
package.r pkg("car")
,r pkg("lmtest")
, r pkg("strucchange")
, r pkg("urca", priority = "core")
, andr pkg("sandwich")
packages. The r pkg("Rcmdr")
package provide user interfaces that may ber view("TimeSeries")
arima()
and KalmanLike()
commands inr pkg("timsac")
package provides a variety of more advanced estimationr pkg("fracdiff")
can estimate fractionally integrated series; r pkg("longmemo")
garch()
r pkg("tseries", priority = "core")
package. Rmetrics (see below) contains ther pkg("fGarch", priority = "core")
package which has additional models. The r pkg("rugarch", priority = "core")
package can be used to model a variety of univariate GARCH models withr pkg("rmgarch")
builds on it to provide the ability to estimate several multivariate GARCHr pkg("betategarch")
package can estimate and simulate the Beta-t-EGARCH model byr pkg("bayesGARCH")
package can perform Bayesian estimation of a GARCH(1,1) modelr pkg("gogarch")
package providesr pkg("gets")
package (which wasr pkg("lgarch")
package can estimater pkg("garchx")
package estimate GARCH models with leverage andr pkg("bmgarch")
package fits several multivariate GARCH models in ar pkg("tseries")
, and r pkg("urca")
. Ther pkg("timeSeries", priority = "core")
and r pkg("fMultivar", priority = "core")
contain a number of estimation functions for ARMA, GARCH, long memory models, unitr pkg("CADFtest")
package implements the Hansen unit root test.r pkg("vars")
package offer estimation, diagnostics, forecasting and error decompositionr pkg("dyn")
and r pkg("dynlm")
packages are suitable for dynamic (linear) regressionr pkg("wavelets")
,r pkg("waveslim")
, r pkg("wavethresh")
. Some methods from chaos theory are provided by ther pkg("tseriesChaos")
. r pkg("tsDyn")
adds time series analysis based on dynamicalr pkg("forecast")
package adds functions for forecasting problems.r pkg("stochvol")
package implements Bayesian estimation of stochastic volatility usingr pkg("factorstochvol")
extends this to the multivariate case.r pkg("MSGARCH")
package adds methods to fit (by Maximum Likelihood or Bayesian),r pkg("DriftBurstHypothesis")
package estimates a t-test statistics for the explosiver pkg("lmForc")
various in-sample, out-of-sample, pseudo-out-of-sample and benchmarkr pkg("fAssets", priority = "core")
,r pkg("fBasics", priority = "core")
,r pkg("fBonds", priority = "core")
,r pkg("timeDate", priority = "core")
(formerly: fCalendar),r pkg("fCopulae", priority = "core")
,r pkg("fExtremes", priority = "core")
,r pkg("fGarch")
,r pkg("fImport", priority = "core")
,r pkg("fNonlinear", priority = "core")
,r pkg("fPortfolio", priority = "core")
,r pkg("fRegression", priority = "core")
,r pkg("timeSeries")
(formerly: fSeries),r pkg("fTrading", priority = "core")
, and contains a very large number of relevant functions forr pkg("RQuantLib")
package provides several option-pricing functions as well as somer pkg("RcppQuantuccia")
r pkg("quantmod")
package offers a number of functions for quantitative modelling inr pkg("backtest")
offers tools to explore portfolio-based hypotheses about financialr pkg("pa")
package offers performance attribution functionality for equityr pkg("PerformanceAnalytics", priority = "core")
package contains a large number ofr pkg("TTR")
contains functions to construct technical trading rules in R.r pkg("sde")
package provides simulation and inference functionality for stochasticr pkg("vrtest")
package contains a number of variance ratio tests for the weak-form of ther pkg("gmm")
package provides generalized method of moments (GMM) estimations functionr pkg("BurStFin")
and r pkg("BurStMisc")
package has a collection of function forr pkg("parma")
package provides support for portfolio allocation and risk managementr pkg("SharpeR")
package contains a collection of tools for analyzing significance ofr pkg("RND")
package implements various functions to extract risk-neutral densities fromr pkg("LSMonteCarlo")
package can price American Options via the Least Squares Monte Carlor pkg("BenfordTests")
package provides seven statistical tests and support functions forr pkg("OptHedging")
package values call and put option portfolio and implements an optimalr pkg("markovchain")
package provides functionality to easily handle and analyse discreter pkg("tvm")
package models provides functions for time value of money such as cashflowsr pkg("MarkowitzR")
package provides functions to test the statistical significance ofr pkg("pbo")
package models the probability of backtest overfitting, performancer pkg("OptionPricing")
package implements efficient Monte Carlo algorithms for the pricer pkg("restimizeapi")
package interfaces the API at www.estimize.com which providesr pkg("credule")
package is another pricer for credit default swaps.r pkg("obAnalytics")
package analyses and visualizes information from events in limitr pkg("derivmkts")
package adds a set of pricing and expository functions useful inr pkg("ragtop")
package prices equity derivatives under an extension to Black and Scholesr pkg("InfoTrad")
packages estimates PIN and extends it to different factorization andr pkg("FinancialMath")
package contains financial math and derivatives pricing functionsr pkg("tidyquant")
package re-arranges functionality from several other key packages forr pkg("BCC1997")
prices European options under the Bakshi, Cao anc Chen (1997) model forr pkg("Sim.DiffProc")
package provides functions to simulate and analyse multidimensionalr pkg("BLModel")
package computes the posterior distribution in a Black-Litterman modelr pkg("PortfolioOptim")
can solve both small and large sample portfolio optimization.r pkg("DtD")
package computes the distance to default per Merton’s model.r pkg("PeerPerformance")
package analyzes performance of investments funds relative to itsr pkg("crseEventStudy")
package provides another event-study tool to analyse abnormalr pkg("simfinapi")
package provides R access to SimFin fundamentalr pkg("NFCP")
package models commodity prices via an n-factor term structure estimation.r pkg("LSMRealOptions")
package uses least-squares Monte Carlo to value American and Realr pkg("AssetCorr")
package estimates intra- and inter-cohort correlations from defaultr pkg("ichimoku")
package provides tools for creating and visualising Ichimoku Kinko Hyor pkg("greeks")
package calculate sensitivities of financial option prices for Europeanr pkg("RTL")
(Risk Tool Library) package offers a collection of functions and metadata tor pkg("GARCHSK")
package estimates GARCHSK and GJRSK models allowing for time-varyingr pkg("bidask")
package offers a novel procedure to estimate bid-ask spreads from OHLCr pkg("strand")
package adds a framework for discrete (share-level) simulations ofr pkg("HDShOP")
package constructs shrinkage estimators of high-dimensional mean-variancer pkg("DOSPortfolio")
r pkg("SVDNF")
package implements a discrete nonlinear filter to find filtering distributionr pkg("fHMM")
package implements hidden Markov models and their hierarchical extensionr pkg("epo")
package offers enhanced portfolio optimization (EPO) as described in Pedersenr pkg("BayesianFactorZoo")
package provides a novel Bayesian framework for analysingr pkg("cryptoQuotes")
package provides a streamlined access to cryptocurrency OHLC-V market data and sentiment indicators with granularity varying from seconds to months.r pkg("qrmtools")
and r pkg("qrmdata")
provide tools and data for standardr view("ExtremeValue")
regroups a number of relevant packages.r pkg("mvtnorm")
package provides code for multivariate Normal and t-distributions.r pkg("nvmix")
provides functionality for multivariate normal variance mixturesr pkg("fPortfolio")
and r pkg("fExtremes")
also contain a number ofr pkg("copula")
and r pkg("copulaData")
cover a wide range of modeling tasksr pkg("actuar")
package provides an actuarial perspective to risk management.r pkg("ghyp")
package provides generalized hyberbolic distribution functions as well asr pkg("ChainLadder")
package provides functions for modeling insurance claim reserves; andr pkg("lifecontingencies")
package provides functions for financial and actuarialr pkg("ESG")
package can be used to model for asset projection, a scenario-basedr pkg("riskSimul")
package provides efficient simulation procedures to estimate tail lossr pkg("GCPM")
package analyzes the default risk of credit portfolio using both analyticalr pkg("FatTailsR")
package provides a family of four distributions tailored tor pkg("Dowd")
package contains functions ported from the ‘MMR2’ toolbox offered in Kevinr pkg("PortRisk")
package computes portfolio risk attribution.r pkg("NetworkRiskMeasures")
package implements some risk measures for financial networksr pkg("Risk")
package computes 26 financial risk measures for any continuous distribution.r pkg("RiskPortfolios")
package constructs risk-based portfolios as per the correspondingr pkg("reinsureR")
package models reinsurances a class Claims whose objective is to storer pkg("RM2006")
package estimates conditional covariance matrix using the RiskMetrics 2006r pkg("cvar")
package computes expected shortfall and value at risk for continuousr pkg("riskParityPortfolio")
offers fast implementations for constructing risk-parityr pkg("monobin")
package performs monotonic binning of numeric risk factor in creditr pkg("etrm")
package contains a collection of functions to perform core tasks withinr pkg("ufRisk")
offers multiple Value at Risk and Expected Shortfall measures from bothr pkg("bondAnalyst")
and r pkg("stockAnalyst")
provide a number of, respectively,r pkg("bearishTrader")
, r pkg("bullishTrader")
, and r pkg("volatilityTrader")
r pkg("VaRES")
computes both value at risk and expected shortfall for many parametricr pkg("NMOF")
package provides functions, examples and data from Numerical Methods andr pkg("FRAPO")
package provides data sets and code for the book Financial Risk Modellingr pkg("zoo", priority = "core")
and r pkg("timeDate")
(part of Rmetrics) packagesr pkg("xts", priority = "core")
r pkg("zoo")
specifically for financial time series. See ther view("TimeSeries")
task view for more details.r pkg("timeDate")
also addresses calendar issues such as recurring holidays for a large numberr pkg("tis")
package provides time indices and time-indexed series compatibler pkg("IBrokers")
and r pkg("rib")
provide access to the Interactive Brokers APIr pkg("data.table")
package provides very efficient and fast access to in-memory data setsr pkg("highfrequency")
contains functionality to manage, clean and matchr pkg("bizdays")
package compute business days if provided a list of holidays.r pkg("TAQMNGR")
package manages tick-by-tick (equity) transaction data performingr pkg("Rblpapi")
package offers efficient access to the Bloomberg API and allows bdp
,bdh
, and bds
queries as well as data retrieval both in (regular time-)bars and ticks (albeitr pkg("finreportr")
package can download reports from the SEC Edgar database, and reliesr pkg("XBRL")
package for parsing these reports.r pkg("GetTDData")
package imports Brazilian government bonds data (such as LTN, NTN-B andr pkg("frenchdata")
.French
in package r pkg("NMOF")
.r pkg("freecurrencyapi")
.