Description Usage Arguments References Examples
This function transforms the original monthly time series to its stationary representation following the user specification.
The time series with more than 1/3 missings, i.e. NA
s are deleted.
The missings and outliers are “corrected” following the same method avaible in the replication files of Giannone et al. 2008.
Outliers are defined as observations that lies more than 4 IQR from median. All missings and outliers are replaced by the median. A centered moving average of degree k_ma
is calculated, forming a new panel. Then the missings and outliers are replaced by their equivalent observations on this new panel.
We've made an important modifications on the outlier_correction function found in the above mentioned files: Here the median of an even-sized sample is calculated by the mean of the two most central values, rather than using the largest of those numbers. Because of this modification the results obtained with the original replication files in (USGDP
) are slightly different than those found here.
In the end, the monthly series can be aggregated to quarterly quantities following the Mariano and Murasawsa 2003 approximation.
1 |
base |
A |
trans |
A
|
aggregate |
A |
k_ma |
A |
Giannone, D., Reichlin, L., & Small, D. (2008). Nowcasting: The real-time informational content of macroeconomic data. Journal of Monetary Economics, 55(4), 665-676.<doi:10.1016/j.jmoneco.2008.05.010>
Mariano, R. S., & Murasawa, Y. (2003). A new coincident index of business cycles based on monthly and quarterly series. Journal of applied Econometrics, 18(4), 427-443.<doi:10.1002/jae.695>
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.