Restricted MIDAS regression
Function for fitting MIDAS regression without the formula interface
midas_r_plain( y, X, z = NULL, weight, grw = NULL, startx, startz = NULL, method = c("Nelder-Mead", "BFGS"), ... )
y
: model responseX
: prepared matrix of high frequency variable lagsz
: additional low frequency variablesweight
: the weight functiongrw
: the gradient of weight functionstartx
: the starting values for weight functionstartz
: the starting values for additional low frequency variablesmethod
: a method passed to optimx...
: additional parameters to optimxan object similar to midas_r
object
data("USunempr") data("USrealgdp") y <- diff(log(USrealgdp)) x <- window(diff(USunempr),start=1949) trend <- 1:length(y) X<-fmls(x,11,12) midas_r_plain(y,X,trend,weight=nealmon,startx=c(0,0,0))
Virmantas Kvedaras, Vaidotas Zemlys