Learn R Programming

⚠️There's a newer version (1.0.1) of this package.Take me there.

highfrequency (version 0.8.0)

Tools for Highfrequency Data Analysis

Description

Provide functionality to manage, clean and match highfrequency trades and quotes data, calculate various liquidity measures, estimate and forecast volatility, detect price jumps and investigate microstructure noise and intraday periodicity.

Copy Link

Version

Install

install.packages('highfrequency')

Monthly Downloads

1,607

Version

0.8.0

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Kris Boudt

Last Published

January 9th, 2021

Functions in highfrequency (0.8.0)

HEAVYmodel

HEAVY model estimation
BNSjumpTest

Barndorff-Nielsen and Shephard (2006) tests for the presence of jumps in the price series.
ReMeDIAsymptoticVariance

Asymptotic variance of ReMeDI estimator
Bj

Internal HEAVY functions
RV

An estimator of realized variance.
JOjumpTest

Jiang and Oomen (2008) tests for the presence of jumps in the price series.
ReMeDI

ReMeDI
HARmodel

Heterogeneous autoregressive (HAR) model for realized volatility model estimation
AJjumpTest

Ait-Sahalia and Jacod (2009) tests for the presence of jumps in the price series.
driftBursts

Inference on drift burst hypothesis
IVinference

Function returns the value, the standard error and the confidence band of the integrated variance (IV) estimator.
businessTimeAggregation

Business time aggregation
autoSelectExchangeTrades

Retain only data from the stock exchange with the highest trading volume
aggregatePrice

Aggregate a time series but keep first and last observation
SPYRM

SPY realized measures
getAlphaVantageData

Get high frequency data from Alpha Vantage
getCriticalValues

Get critical value for the drift burst hypothesis t-statistic
exchangeHoursOnly

Extract data from an xts object for the exchange hours only
listCholCovEstimators

Utility function listing the available estimators for the CholCov estimation
noZeroQuotes

Delete the observations where the bid or ask is zero
listAvailableKernels

Available kernels
noZeroPrices

Delete the observations where the price is zero
aggregateQuotes

Aggregate a data.table or xts object containing quote data
aggregateTS

Aggregate a time series
intradayJumpTest

Intraday jump tests
makeReturns

Compute log returns
highfrequency-package

highfrequency: Tools for Highfrequency Data Analysis
makeRMFormat

Convert to format for realized measures
aggregateTrades

Aggregate a data.table or xts object containing trades data<U+00B4>
leadLag

Lead-Lag estimation
knChooseReMeDI

ReMeDI tuning parameter
matchTradesQuotes

Match trade and quote data
getLiquidityMeasures

Compute Liquidity Measure Function returns an xts or data.table object containing 23 liquidity measures. Please see details below. Note that this assumes a regular time grid.
autoSelectExchangeQuotes

Retain only data from the stock exchange with the highest volume
print.HARmodel

Printing method for HARmodel objects
getTradeDirection

Get trade direction
mergeTradesSameTimestamp

Merge multiple transactions with the same time stamp
predict.HEAVYmodel

Iterative multi-step-ahead forecasting for HEAVY models
print.DBH

Printing method for DBH objects
rHYCov

Hayashi-Yoshida covariance
rCov

Realized covariance
mukp

to use when p,k different from range [4,6]
rBPCov

Realized bipower covariance
rAVGCov

Realized covariances via subsample averaging
mergeQuotesSameTimestamp

Merge multiple quote entries with the same time stamp
rBeta

Realized beta
plot.DBH

Plotting method for DBH objects
rQPVar

Realized quad-power variation of intraday returns
rankJumpTest

Rank jump test
rOWCov

Realized outlyingness weighted covariance
rMRC

Modulated realized covariance
rCholCov

CholCov estimator
rMPV

Realized multipower variation
plot.HARmodel

Plotting method for HARmodel objects
makeOHLCV

Make Open-High-Low-Close-Volume bars
rRTSCov

Robust two time scale covariance estimation
rQuar

Realized quarticity
rMedRV

rMedRV
quotesCleanup

Cleans quote data
predict.HARmodel

Predict method for objects of type HARmodel
rMedRQ

An estimator of integrated quarticity from applying the median operator on blocks of three returns
plot.HEAVYmodel

Plotting method for HEAVYmodel objects
rKernelCov

Realized kernel estimator
makePsd

Returns the positive semidefinite projection of a symmetric matrix using the eigenvalue method
refreshTime

Synchronize (multiple) irregular timeseries by refresh time
rTPQuar

Realized tri-power quarticity
rKurt

Realized kurtosis of highfrequency return series.
rSkew

Realized skewness
rSV

Realized semivariance of highfrequency return series
salesCondition

salesCondition is deprecated. Use tradesCondition instead.
sampleOneMinuteData

One minute data
rTSCov

Two time scale covariance estimation
rMinRQ

An estimator of integrated quarticity from applying the minimum operator on blocks of two returns
tradesCleanupUsingQuotes

Perform a final cleaning procedure on trade data
sampleTDataRaw

Sample of raw trades for stock XXX for 2 days
selectExchange

Retain only data from a single stock exchange
spotVol

Spot volatility estimation
rSemiCov

Realized semicovariance
spotDrift

Spot Drift Estimation
rmNegativeSpread

Delete entries for which the spread is negative
rThresholdCov

Threshold Covariance
rmLargeSpread

Delete entries for which the spread is more than maxi times the median spread
rMinRV

rMinRV
sampleQData

Sample of cleaned quotes for stock XXX for 2 days measured in microseconds
summary.HARmodel

Summary for HARmodel objects
rmOutliersQuotes

Remove outliers in quotes
sampleTData

Sample of cleaned trades for stock XXX for 2 days
sampleTDataEurope

European data
rmTradeOutliersUsingQuotes

Delete transactions with unlikely transaction prices
tradesCondition

Delete entries with abnormal trades condition.
sampleQDataRaw

Sample of raw quotes for stock XXX for 2 days measured in microseconds
tradesCleanup

Cleans trade data