Learn R Programming

cif (version 0.1.1)

Cointegrated ICU Forecasting

Description

Set of forecasting tools to predict ICU beds using a Vector Error Correction model with a single cointegrating vector. Method described in Berta, P. Lovaglio, P.G. Paruolo, P. Verzillo, S., 2020. "Real Time Forecasting of Covid-19 Intensive Care Units demand" Health, Econometrics and Data Group (HEDG) Working Papers 20/16, HEDG, Department of Economics, University of York, .

Copy Link

Version

Install

install.packages('cif')

Monthly Downloads

202

Version

0.1.1

License

GPL-3

Maintainer

Paolo Paruolo

Last Published

March 1st, 2022

Functions in cif (0.1.1)

ec.gfld

ec.gfld plots forecasts of levels and difference with confidence bars
summary.cif

summary function for cif
mls

Multivariate Least-Squares regression
ec.ifp

Computes Indices of Forecast Performance
iculomb

Data from Italian Civil Protection
ec.searchbreaks

search for breaks dates for given q (=1,2,3,4)
ec.main

Forecast with Vector Error Correction Model
ec.plotfor

plots forecasts
ec.plotroots

Companion matrix of the VAR
ec.datalag

prepares Dy y_1 Dy_1 ... Dy_nlag-1 for estimation
ec.predict

produces predictions for the VECM via its VAR companion form
listsize

listsize number of terms in the search for 1,2,3,4 number of breaks
lagn

lag j of matrix or vector y
ec.gfd

plots forecasts of difference with confidence bars
ec.companion

computes companion matrix of the VAR
ec.datadet1

prepares deterministics D^(1)
crossing

computes at which observation a vector y crosses ref for the first time
Wald.mls

Wald test for Multivariate Least-Squares regression
ec.gfl

plots level forecasts with confidence bars
diffe

appends NA at beginning of diff(y)
ec.datadet2

prepares deterministics D^(2)
ec.EG1

estimates the VECM with the 2-stage procedure of Engle & Granger