crossq: Cross-Quantilogram

Description Usage Arguments Details Value Author(s) References Examples

View source: R/crossq.R

Description

Returns the cross-quantilogram

Usage

1
crossq(DATA, vecA, k)

Arguments

DATA

An input matrix

vecA

A pair of two probability values at which sample quantiles are estimated

k

A lag order (integer)

Details

This function obtains the cross-quantilogram at the k lag order.

Value

Cross-Quantilogram

Author(s)

Heejoon Han, Oliver Linton, Tatsushi Oka and Yoon-Jae Whang

References

Han, H., Linton, O., Oka, T., and Whang, Y. J. (2016). "The cross-quantilogram: Measuring quantile dependence and testing directional predictability between time series." Journal of Econometrics, 193(1), 251-270.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## data source 
data("sys.risk") 

## data: 2 variables 
D = sys.risk[,c("Market", "JPM")]

# probability levels for the 2 variables 
vecA = c(0.1, 0.5)

## cross-quantilogram with the lag of 5
crossq.max(D, vecA, 5)

quantilogram documentation built on July 1, 2020, 10:26 p.m.