knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
Drawing statistical inference on the coefficients of a short- or long-horizon predictive regression with persistent regressors by using the IVX method of Magdalinos and Phillips (2009) and Kostakis, Magdalinos and Stamatogiannis (2015).
You can install the development version from GitHub with:
# Install release version from CRAN install.packages("ivx") # install.packages("devtools") devtools::install_github("kvasilopoulos/ivx")
library(ivx) library(magrittr)
This is a basic example, lets load the data first:
# Monthly data from Kostakis et al (2014) kms %>% names()
And then do the univariate estimation:
ivx(Ret ~ DP, data = kms) %>% summary() ivx(Ret ~ DP, data = kms, horizon = 4) %>% summary()
And the multivariate estimation, for one or multiple horizons:
ivx(Ret ~ DP + TBL, data = kms) %>% summary() ivx(Ret ~ DP + TBL, data = kms, horizon = 4) %>% summary()
ivx_ar(hpi ~ cpi, data = ylpc) %>% summary()
Please note that the 'ivx' project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.