powered by
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"), ... )
an object similar to midas_r object
midas_r
model response
prepared matrix of high frequency variable lags
additional low frequency variables
the weight function
the gradient of weight function
the starting values for weight function
the starting values for additional low frequency variables
a method passed to optimx
additional parameters to optimx
Virmantas Kvedaras, Vaidotas Zemlys
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))
Run the code above in your browser using DataLab