| midas_r_plain | R Documentation | 
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 response | 
| X | prepared matrix of high frequency variable lags | 
| z | additional low frequency variables | 
| weight | the weight function | 
| grw | the gradient of weight function | 
| startx | the starting values for weight function | 
| startz | the starting values for additional low frequency variables | 
| method | a method passed to optimx | 
| ... | additional parameters to optimx | 
an object similar to midas_r object
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.