coef.TSmodel {dse}R Documentation

Extract or set Model Parameters

Description

Set or extract coefficients (parameter values) of model objects.

Usage

    ## S3 method for class 'TSmodel'
coef(object, ...)
    ## S3 method for class 'TSestModel'
coef(object, ...)
    coef(object) <- value
    ## Default S3 replacement method:
coef(object) <- value
    

Arguments

object

An object of class TSmodel or TSestModel.

value

value to be assigned to object.

...

(further arguments, currently disregarded).

Value

A vector of parameter values.

Examples

    data("eg1.DSE.data.diff", package="dse")
    model <- estVARXls(eg1.DSE.data.diff)
    coef(model)
    coef(model) <- 0.1 + coef(model)

[Package dse version 2020.2-1 Index]