Description Usage Arguments Details Value Author(s) Examples
View source: R/CompositeIndex.R
CompositeIndex: return composite economic index
composite consistent index from consistent indicators, composite leading index from leading indicators, composite lagging index from lagging indicators. The consistent / leading / lagging indicators were determined by corresponding expert or algorithms like KL, crosscor ... Generally, these are economic indicators, whose value is itself, or cycle part from seasonal-adjusted (C), or its year-on-year growth rate of trend and cycle part (TC) from seasonal-adjusted.
1 2 3 4 5 6 | CompositeIndex(consistent, leading = NULL, lagging = NULL, co_wgt = NULL,
le_wgt = NULL, la_wgt = NULL, rate_method = c("division", "difference",
"auto"), start = numeric(), end = numeric(), frequency = 12,
baseyear = start[1], trend_adjust = TRUE, neighbour = 5,
mincycle = 15, phase = 5, extr_limit = 3.5, end_num = 6,
mcd_gap = 8)
|
consistent, leading, lagging |
data frame, including consistent indicators, leading indicators, lagging indicators respectively . |
co_wgt, le_wgt, la_wgt |
data frame, including weights respectively for |
rate_method |
calculating method for symmetry rate. |
start, end |
start and end of time series, it's usage like |
frequency |
12 for monthly data , 4 for seasonal data . In addition , |
baseyear |
final index will base on a certain year(whose indices' mean will be regarded as 100) to adjust relative size of index . |
trend_adjust |
|
neighbour...mcd_gap |
refer to bbturns, see https://github.com/Nisus-Liu/bbturns. |
This package depend on package named bbturns
from GitHub, you can get it like :
install.packages("devtools")
>> library(devtools)
>> install_github("Nisus-Liu/bbturns")
.
A data frame including :
\ consistentconsistent index \ leadingleading index \ lagginglagging index
Hejun Liu (Nisus-Liu), e-mail: liuhejunlj@163.com
1 | CI <- CompositeIndex(consistent , leading , co_wgt = consistent_wgt, start = c(2006,1), end = c(2016,7), baseyear = 2006)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.