Learn R Programming

sparsevar (version 0.0.9)

fitVECM: Multivariate VECM estimation

Description

A function to estimate a (possibly big) multivariate VECM time series using penalized least squares methods, such as ENET, SCAD or MC+.

Usage

fitVECM(data, p, penalty, method, logScale, ...)

Arguments

data
the data from the time series: variables in columns and observations in rows
p
order of the VECM model
penalty
the penalty function to use. Possible values are "ENET", "SCAD" or "MCP"
method
"cv" or "timeSlice"
logScale
should the function consider the log of the inputs? By default this is set to TRUE
...
options for the function (TODO: specify)

Value

Pi the matrix Pi for the VECM modelG the list (of length p-1) of the estimated matrices of the processfit the results of the penalized LS estimationmse the mean square error of the cross validationtime elapsed time for the estimation