MSM.fit {NTS} | R Documentation |
Fitting Univariate Autoregressive Markov Switching Models
Description
Fit autoregressive Markov switching models to a univariate time series using the package MSwM.
Usage
MSM.fit(y, p, nregime = 2, include.mean = T, sw = NULL)
Arguments
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 |
Value
MSM.fit
returns an object of class codeMSM.lm or MSM.glm
, depending on the input model.
[Package NTS version 1.1.3 Index]