midas_r_simple: Restricted MIDAS regression

Description Usage Arguments Value Author(s) Examples

Description

Function for fitting MIDAS regression without the formula interface

Usage

1
2
midas_r_simple(y, X, z = NULL, weight, grw = NULL, startx, startz = NULL,
  method = c("Nelder-Mead", "BFGS"), ...)

Arguments

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

Value

an object similar to midas_r object

Author(s)

Virmantas Kvedaras, Vaidotas Zemlys

Examples

1
2
3
4
5
6
7
8
9
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_simple(y,X,trend,weight=nealmon,startx=c(0,0,0))


Search within the midasr package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.