Description Usage Arguments Details Value Examples
calculate correlation coefficient when crossing date of two time series, and then separate leading, consistent, lagging indicators from economic indicators.
1 2 |
base |
a numeric vector, containing a basic indicator for comparing to other indicators in order to recognize who is leading indicator ... |
divergent |
a data frame containing indicators to be compared with |
lag |
max lag (forward or afterward) for calculating |
group_lag |
threshold value of lag for divide different indicator, default is 3, means that lagging or leading lag at range of [-3, 3] will group the indicator to consistent indicator. |
method |
method to calculate correlation coefficient, refer to cor. |
this function and it's role is equal to KL,
just base on different method for dividing groups. Compare to KL, crosscor
don't request the time series must include only positive values.
A list includes some value as follow :
data frame, including coincident indicator
data frame, including leading indicator
data frame, lagging indicator
matrix including correlation coefficient and lag information
data frame, including vector of Cor_lag
: lag corresponding max
correlation coefficient and vector of Cor_max
: max correlation coefficient
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.