MSM.fit | R Documentation |
Fit autoregressive Markov switching models to a univariate time series using the package MSwM.
MSM.fit(y, p, nregime = 2, include.mean = T, sw = NULL)
y |
a time series. |
p |
AR order. |
nregime |
the number of regimes. |
include.mean |
a logical value for including constant terms. |
sw |
logical values for whether coefficients are switching. The length of |
MSM.fit
returns an object of class codeMSM.lm or MSM.glm
, depending on the input model.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.