Last updated on 2019-03-07 by Dirk Eddelbuettel
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 Econometrics , Multivariate, Optimization, Robust, SocialSciences and 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. Since the start of this CRAN task view in April 2005, most contributions have arrived as email suggestions. The source file for this particular task view file now also reside in a GitHub repository (see below) so that pull requests are also possible.
Standard regression models
lm()
(from by the stats package contained in the basic R
distribution). Maximum Likelihood (ML) estimation can be undertaken
with the standard optim()
function. Many other suitable methods
are listed in the Optimization view. Non-linear least squares can
be estimated with the nls()
function, as well as with
nlme()
from the nlme package.
Time series
arima()
and KalmanLike()
commands in the
basic R distribution.
garch()
function in the
tseries package. Rmetrics (see below) contains
the fGarch package which has additional models.
The rugarch package can be used to model a
variety of univariate GARCH models with extensions such as
ARFIMA, in-mean, external regressors and various other
specifications; with methods for fit, forecast, simulation,
inference and plotting are provided too. The rmgarch
builds on it to provide the ability to estimate several multivariate
GARCH models. The
betategarch package can estimate and simulate the
Beta-t-EGARCH model by Harvey. The bayesGARCH
package can perform Bayesian estimation of a GARCH(1,1)
model with Student's t innovations. For multivariate
models, the gogarch package provides functions for
generalized orthogonal GARCH models. The
gets package (which was preceded by a related package
AutoSEARCH) provides automated general-to-specific model selection of the mean and
log-volatility of a log-ARCH-X model. The GEVStableGarch
package can fit ARMA-GARCH or ARMA-APARCH models with GEV and
stable conditional distributions. The lgarch package
can estimate and fit log-Garch models.
Finance
Risk management
Books
Data and date management
bdp
, bdh
, and bds
queries as well as data retrieval both in (regular time-)bars and
ticks (albeit without subsecond resolution).
8 years ago by Paolo Zagaglia
This package includes pricing function for selected American call options with underlying assets that generate payouts.
4 years ago by Daniel Gerlanc
Exploring Portfolio-Based Conjectures About Financial Instruments
3 years ago by David Ardia
Bayesian Estimation of the GARCH(1,1) Model with Student-t Innovations
3 years ago by Haoran Zhang
Calculation of Option Prices Based on a Universal Solution
4 years ago by Dieter William Joenssen
Statistical Tests for Evaluating Conformity to Benford's Law
3 years ago by Genaro Sucarrat
Simulation, Estimation and Forecasting of Beta-Skew-t-EGARCH Models
2 years ago by Claudio Lupi
A Package to Perform Covariate Augmented Dickey-Fuller Unit Root Tests
5 months ago by Markus Gesmann
Statistical Methods and Models for Claims Reserving in General Insurance
11 years ago by Andreas Wittmann
Functions for calculating the CreditMetrics risk model
2 months ago by Siegfried Köstlmeier
A Robust and Powerful Test of Abnormal Stock Returns in Long-Horizon Event Studies
7 months ago by Georgi N. Boshnakov
Compute Expected Shortfall and Value at Risk for Continuous Distributions
4 months ago by Robert McDonald
Functions and R Code to Accompany Derivatives Markets
4 years ago by Dinesh Acharya
Functions Ported from 'MMR2' Toolbox Offered in Kevin Dowd's Book Measuring Market Risk
10 days ago by Emil Sjoerup
Calculates the Test-Statistic for the Drift Burst Hypothesis
6 months ago by Iegor Rudnytskyi
An Implementation of Parametric and Nonparametric Event Study
10 days ago by Gregor Kastner
Bayesian Estimation of (Sparse) Latent Factor Stochastic Volatility Models
2 years ago by Tobias Setz
Rmetrics - Bivariate Dependence Structures with Copulae
9 months ago by Tobias Setz
Rmetrics - Autoregressive Conditional Heteroskedastic Modelling
8 years ago by Paolo Zagaglia
Classifies implicit trading activity from market quotes and computes the probability of informed trading
3 years ago by Seward Lee
Financial Data from U.S. Securities and Exchange Commission
2 years ago by Tobias Setz
Rmetrics - Analysing and Modeling Multivariate Financial Return Distributions
2 years ago by Tobias Setz
Rmetrics - Nonlinear and Chaotic Time Series Modelling
2 years ago by Tobias Setz
Rmetrics - Regression Based Decision and Prediction
2 years ago by Tobias Setz
Rmetrics - Trading and Rebalancing Financial Instruments
7 years ago by Martin Maechler
Fractionally differenced ARIMA aka ARFIMA(p,d,q) models
2 years ago by William Constantine
A Fractal Time Series Modeling and Analysis Package
3 years ago by Bernhard Pfaff
Financial Risk Modelling and Portfolio Optimisation with R
7 years ago by Thanh T. Tran
The Generalized Hyperbolic Distribution, Related Distributions and Their Applications in Finance
6 months ago by Marcelo Perlin
Download and Aggregate High Frequency Trading Data from Bovespa
15 days ago by Genaro Sucarrat
General-to-Specific (GETS) Modelling and Indicator Saturation Methods
4 years ago by Thiago Sousa
ARMA-GARCH/APARCH Models with GEV and Stable Distributions
3 years ago by Marc Weibel
A Package on Generalized Hyperbolic Distribution and Its Special Cases
2 years ago by Pierre Chausse
Generalized Method of Moments and Generalized Empirical Likelihood
7 months ago by Giorgio Alfredo Spedicato
Financial and Actuarial Mathematics for Life Contingencies
6 years ago by Mikhail A. Beketov
American options pricing with Least Squares Monte Carlo method
a year ago by Martin Maechler
Statistics for Long-Memory Processes (Book Jan Beran), and Related Functionality
a month ago by Giorgio Alfredo Spedicato
Easy Handling Discrete Time Markov Chains
6 years ago by Bruno Remillard
Estimation of value and hedging strategy of call and put options.
5 years ago by Wolfgang Hormann
Option Pricing with Efficient Simulation Algorithms
4 months ago by Brian G. Peterson
Econometric Tools for Performance and Risk Analysis
a year ago by Andreas Recktenwald
Fast and Stable Estimation of the Probability of Informed Trading (PIN)
3 years ago by Andrey Kostin
High Frequency Portfolio Analytics by PortfolioEffect
6 years ago by Daniel Gerlanc
Framework for simulating equity portfolio strategies
5 months ago by Brian K. Boonstra
Pricing Equity Derivatives with Extensions of Black-Scholes
2 months ago by Dirk Eddelbuettel
R Bindings to the 'Quantuccia' Header-Only Essentials of 'QuantLib'
4 years ago by Thomas P. Fuller
Functions for Working with the 'www.estimize.com' Web Services
2 years ago by Saralees Nadarajah
Computes 26 Financial Risk Measures for Any Continuous Distribution
5 years ago by Wolfgang Hormann
Risk Quantification for Stock Portfolios under the T-Copula Model
2 years ago by Stephan Maier
Recognising Visual Charting Patterns in Time Series Data
4 years ago by Stefano Maria Iacus
Simulation and Inference for Stochastic Differential Equations
4 months ago by Darjus Hosszejni
Efficient Bayesian Inference for Stochastic Volatility (SV) Models
a year ago by Brian Lee Yung Rowe
Clean Covariance Matrices Using Random Matrix Theory and Shrinkage Estimators for Portfolio Optimization
5 years ago by Jae H. Kim
Variance Ratio tests and other tests for Martingale Difference Hypothesis
9 months ago by Eric Aldrich
Functions for Computing Wavelet Filters, Wavelet Transforms and Multiresolution Analyses
9 months ago by Brandon Whitcher
Basic Wavelet Routines for One-, Two- And Three-Dimensional Signal Processing
6 years ago by Thierry Moudiki
Yield curve or zero-coupon prices interpolation and extrapolation
3 years ago by Roberto Bertolusso
Extraction of Business Financial Information from 'XBRL' Documents
5 months ago by Achim Zeileis
S3 Infrastructure for Regular and Irregular Time Series (Z's Ordered Observations)