fitted.dma: Extracts Fitted Values from 'dma' Model.

View source: R/other.methods.dma.R

fitted.dmaR Documentation

Extracts Fitted Values from dma Model.

Description

The function extracts predictions made by the fDMA model.

Usage

## S3 method for class 'dma'
fitted(object, ...)

Arguments

object

an object of dma class

...

not used

Value

vector of forecasted values

Examples

wti <- crudeoil[-1,1]
drivers <- (lag(crudeoil[,-1],k=1))[-1,]
ld.wti <- (diff(log(wti)))[-1,]
ld.drivers <- (diff(log(drivers)))[-1,]

m1 <- fDMA(y=ld.wti,x=ld.drivers,alpha=0.99,lambda=0.99,initvar=1,model="dma")
f <- fitted(object=m1)


fDMA documentation built on July 26, 2023, 6:09 p.m.

Related to fitted.dma in fDMA...