coef.midas_sp {midasr}R Documentation

Extract coefficients of MIDAS regression

Description

Extracts various coefficients of MIDAS regression

Usage

## S3 method for class 'midas_sp'
coef(object, type = c("plain", "midas", "bw"), term_names = NULL, ...)

Arguments

object

midas_nlpr object

type

one of plain, midas, or nlpr. Returns appropriate coefficients.

term_names

a character vector with term names. Default is NULL, which means that coefficients of all the terms are returned

...

not used currently

Details

MIDAS regression has two sets of cofficients. The first set is the coefficients associated with the parameters of weight functions associated with MIDAS regression terms. These are the coefficients of the NLS problem associated with MIDAS regression. The second is the coefficients of the linear model, i.e the values of weight functions of terms, or so called MIDAS coefficients. By default the function returns the first set of the coefficients.

Value

a vector with coefficients

Author(s)

Vaidotas Zemlys


[Package midasr version 0.8 Index]