Learn R Programming

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

highfrequency (version 0.4)

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, and investigate microstructure noise and intraday periodicity.

Copy Link

Version

Install

install.packages('highfrequency')

Monthly Downloads

1,535

Version

0.4

License

GPL (>= 2)

Maintainer

Kris Boudt

Last Published

November 28th, 2014

Functions in highfrequency (0.4)

JOjumptest

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

HAR model estimation (Heterogeneous Autoregressive model for Realized volatility)
makeReturns

Compute log returns
rZero

Calculates the percentage of co-zero returns at a specified sampling period
aggregateTrades

Aggregate an xts object containing trade data
sample_tdata

Sample of cleaned trades for stock XXX for 1 day
rAccumulation

Realized Accumulation Plot
rKernelCov

Realized Covariance: Kernel
medRQ

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

Realized Covariance
rSkew

Realized skewness of highfrequency return series.
matchTradesQuotes

Match trade and quote data
ivInference

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

Realized tripower variation of highfrequency return series.
noZeroQuotes

Delete the observations where the bid or ask is zero
rScatterReturns

Scatterplot of aligned returns
exchangeHoursOnly

Extract data from an xts object for the Exchange Hours Only
aggregatePrice

Aggregate a time series but keep first and last observation
rQPVar

Realized quadpower variation of highfrequency return series.
rBeta

Realized beta: a tool in measuring risk with respect to the market.
selectExchange

Retain only data from a single stock exchange
MRC

Modulated Realized Covariance (MRC): Return univariate or multivariate preaveraged estimator.
getPrice

get price column(s) from a timeseries
rSV

Realized semivariance of highfrequency return series.
rAVGCov

Realized Covariance: Average Subsample
convert

Convert trade or quote data into xts object saved in the RData format
aggregatets

Aggregate a time series
rQuar

Realized quarticity of highfrequency return series.
autoSelectExchangeQuotes

Retain only data from the stock exchange with the highest volume
BNSjumptest

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

Get trade direction
autoSelectExchangeTrades

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

HEAVY Model estimation
heavyModelC

HEAVY Model estimation using C code
rHYCov

Hayashi-Yoshida Covariance
minRV

minRV
highfrequency-package

Tools For Highfrequency Data Analysis
lltc.xts

LLTC Data
sample_tdataraw

Sample of raw trades for stock XXX for 1 day
previoustick

previoustick (internal function)
sample_qdata

Sample of cleaned quotes for stock XXX for 1 day
rmTradeOutliers

Delete transactions with unlikely transaction prices
sample_5minprices

Ten artificial time series for the NYSE trading days during January 2010
tradesCleanupFinal

Perform a final cleaning procedure on trade data
has.Qty

check for Trade, Bid, and Ask/Offer (BBO/TBBO), Quantity, and Price data
medRV

medRV
AJjumptest

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

Load trade or quote data into R
tradesCleanup

Cleans trade data
mergeTradesSameTimestamp

Merge multiple transactions with the same time stamp
rCumSum

Plot cummulative returns
sbux.xts

Starbucks Data
realized_library

The realized library from the Oxford-Man Institute of Quantitative Finance
rMPV

Realized multipower variation (MPV), an estimator of integrated power variation.
rmOutliers

Delete entries for which the mid-quote is outlying with respect to surrounding entries
rThresholdCov

Threshold Covariance
quotesCleanup

Cleans quote data
sample_returns_5min

Sample returns data
noZeroPrices

Delete the observations where the price is zero
sample_5minprices_jumps

Ten artificial time series (including jumps) for the NYSE trading days during January 2010
tqLiquidity

Calculate numerous (23) liquidity measures
rKernel.available

Available Kernels
aggregateQuotes

Aggregate an xts object containing quote data
refreshTime

Synchronize (multiple) irregular timeseries by refresh time
salesCondition

Delete entries with abnormal Sale Condition.
rmNegativeSpread

Delete entries for which the spread is negative
mergeQuotesSameTimestamp

Merge multiple quote entries with the same time stamp
rOWCov

Realized Outlyingness Weighted Covariance
sample_qdataraw

Sample of raw quotes for stock XXX for 1 day
spotvol

Spot volatility estimation
rMarginal

Maginal Contribution to Realized Estimate
rKurt

Realized kurtosis of highfrequency return series.
makePsd

Returns the positive semidinite projection of a symmetric matrix using the eigenvalue method
minRQ

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

Realized BiPower Covariance
rmLargeSpread

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

Sample of imaginary price data for 61 days