regime | R Documentation |
This function allows to extract the indicator variable specifying the regime in which the process is at time t.
regime(object, initVal = TRUE, timeAttr = TRUE, series = NULL, ...)
## S3 method for class 'lstar'
regime(object, initVal = TRUE, timeAttr = TRUE, series, discretize = TRUE, ...)
object |
object of class |
initVal |
Logical. Whether the initial NA values should be returned. Default to TRUE. |
timeAttr |
Logical. Whether the time attributes should be returned. Default to TRUE. |
series |
Optional. A numeric vector to classify according to the model. |
... |
additional arguments to |
discretize |
logical (default TRUE) whether the series are discretized to {1,2}, or whether regime probabilities are returned. |
Time series of same attributes as input to setar.
Matthieu Stigler
set<-setar(lynx, m=3)
regime(set)
regime(set, time=FALSE, initVal=FALSE)
plot(regime(set))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.