Learn R Programming

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

highfrequency (version 0.5)

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,349

Version

0.5

License

GPL (>= 2)

Maintainer

Kris Boudt

Last Published

February 15th, 2017

Functions in highfrequency (0.5)

convert

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

aggregateQuotes

exchangeHoursOnly

autoSelectExchangeTrades

BNSjumptest

autoSelectExchangeQuotes

aggregatets

Aggregate a time series
aggregateTrades

Aggregate an xts object containing trade data
AJjumptest

getPrice

get price column(s) from a timeseries
getTradeDirection

ivInference

JOjumptest

highfrequency-package

heavyModelC

HEAVY Model estimation using C code
heavyModel

HEAVY Model estimation
lltc.xts

LLTC Data
has.Qty

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

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

mergeTradesSameTimestamp

makeReturns

mergeQuotesSameTimestamp

minRQ

medRV

medRQ

makePsd

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

Match trade and quote data
MRC

previoustick

noZeroPrices

rAVGCov

Realized Covariance: Average Subsample
rCumSum

Plot cummulative returns
rAccumulation

Realized Accumulation Plot
noZeroQuotes

quotesCleanup

rBPCov

Realized BiPower Covariance
rCov

rBeta

rHYCov

Hayashi-Yoshida Covariance
rmNegativeSpread

refreshTime

Synchronize (multiple) irregular timeseries by refresh time
rMarginal

Maginal Contribution to Realized Estimate
rKernelCov

Realized Covariance: Kernel
rKurt

realized_library

The realized library from the Oxford-Man Institute of Quantitative Finance
rKernel.available

Available Kernels
rmOutliers

rmLargeSpread

rQuar

rOWCov

Realized Outlyingness Weighted Covariance
rMPV

rmTradeOutliers

rTPVar

rScatterReturns

Scatterplot of aligned returns
rSV

rSkew

rQPVar

rThresholdCov

Threshold Covariance
sample_returns_5min

Sample returns data
sample_5minprices

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

Sample of cleaned trades for stock XXX for 1 day
sample_5minprices_jumps

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

Sample of imaginary price data for 61 days
sample_qdata

Sample of cleaned quotes for stock XXX for 1 day
rZero

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

sample_qdataraw

Sample of raw quotes for stock XXX for 1 day
sample_tdataraw

Sample of raw trades for stock XXX for 1 day
tradesCleanup

sbux.xts

Starbucks Data
selectExchange

TAQLoad

spotvol

Spot volatility estimation
tradesCleanupFinal

tqLiquidity

Calculate numerous (23) liquidity measures