powered by
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 lstar regime(object, initVal = TRUE, timeAttr = TRUE, series, discretize = TRUE, ...)
# S3 method for lstar regime(object, initVal = TRUE, timeAttr = TRUE, series, discretize = TRUE, ...)
Time series of same attributes as input to setar.
object of class setar or nlVar
setar
nlVar
Logical. Whether the NA initial values should be returned. Default to TRUE.
Logical. Whether the time attributes should be returned. Default to TRUE.
Optional. A numeric vector to classify according to the model.
additional arguments to regime
regime
logical (default TRUE) whether the series are discretized to {1,2}, or whether regime probabilities are returned.
Matthieu Stigler
set<-setar(lynx, m=3) regime(set) regime(set, time=FALSE, initVal=FALSE) plot(regime(set))
Run the code above in your browser using DataLab