Midasr

View the Project on GitHub mpiktas/midasr

The midasr R package is dedicated to estimate restricted MIDAS regression, test whether the restriction conforms to data and use the estimated model for forecasting. The package is developed by Virmantas Kvedaras and Vaidotas Zemlys. The package development was influenced by features of the MIDAS Matlab toolbox created by Eric Ghysels. MIDAS-AR* specification code was written by Julius Vainora.

The package is available on CRAN. It can be installed in the usual way:

install.packages("midasr")
This will install the latest stable version, which currently is 0.2

The detailed description of the package features can be found in the User guide. Eventually this user guide will become a package vignette. All of the code examples in the user guide and some additional examples are contained in this file. The user guide source as .Rnw file and the accompanying files can be found in the midasr-user-guide github repository.

The package has three demos: okun, RV and logRV. Please run them with the following code:

library(midasr)
demo("okun","midasr",ask=FALSE)
demo("RV","midasr",ask=FALSE)
demo("logRV","midasr",ask=FALSE)

The last 2 demos take some time to complete (about 5 minutes), so be patient.

To install the latest development version of the package use the following code:

library(devtools)
install_github("midasr","mpiktas")

The package versioning follows this convention: the stable version is x.y. This is a version which is available on CRAN. The development version is x.y.z and it can be installed from github. To install the specific version of the package use the following code:

library(devtools)
install_github("midasr","mpiktas","v0.2")

If you find bugs or have suggestions please file an issue. Add the offending R code and the error message for a bug. Or write an email.