regime: Extract variable showing regime

Description Usage Arguments Value Author(s) Examples

View source: R/nlar-methods.R

Description

This function allows to extract the indicator variable specifying the regime in which the process is at time t.

Usage

1
regime(object, initVal = TRUE, timeAttr = TRUE, ...)

Arguments

object

object of class setar or nlVar

initVal

Logical. Whether the NA initial values should be returned. Default to TRUE.

timeAttr

Logical. Whether the time attributes should be returned. Default to TRUE.

...

additional arguments to regime

Value

Time series of same attributes as input to setar.

Author(s)

Matthieu Stigler

Examples

1
2
3
4
5
set<-setar(lynx, m=3)
regime(set)
regime(set, time=FALSE, initVal=FALSE)

plot(regime(set))

tsDyn documentation built on May 29, 2017, 10:48 a.m.

Search within the tsDyn package
Search all R packages, documentation and source code