Learn R Programming

highfrequency (version 0.7.0.1)

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

Description

Function deletes entries for which the spread is more than "maxi" times the median spread on that day.

Usage

rmLargeSpread(qData, maxi = 50)

Arguments

qData

an xts or data.table object at least containing the columns "BID" and "OFR".

maxi

an integer. By default maxi = "50", which means that entries are deleted if the spread is more than 50 times the median spread on that day.

Value

xts or data.table object depending on input.