coef.TSmodel: Extract or set Model Parameters

Description Usage Arguments Value Examples

Description

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

Usage

1
2
3
4
5
6
7
8
    ## 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

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

dse documentation built on May 2, 2019, 4:59 p.m.