ar_mean | R Documentation |
Computes the long term mean of an AR process
ar_mean(object, ...) ## S3 method for class 'linear' ar_mean(object, ...) ## S3 method for class 'setar' ar_mean(object, ...) ## S3 method for class 'lstar' ar_mean(object, ...)
object |
an object of class |
... |
unused argument |
The function computes the long-term mean of an AR(p) process, or of the corresponding sub-regimes in SETAR or LSTAR model. There are three possible cases:
The LT mean is 0
The LT mean is given by const/(1-sum(AR coefs))
The LT mean is not defined
## estimate a (linear) AR, a SETAR and a LSTAR lin_cst_l1 <- linear(lh, m = 1, include = "const") set_cst_l1 <- setar(lh, m = 1, include = "const") lst_cst_l1 <- lstar(lh, m = 1, include = "const", trace = FALSE) ar_mean(lin_cst_l1) ar_mean(set_cst_l1) ar_mean(lst_cst_l1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.