lstar(x, m, d=1, steps=d, series, mL, mH, thDelay,
th, phi1, phi2, gamma, trace=TRUE, control=list())lstar(series, m, d, steps, mL, mH, mTh,
phi1, phi2, th, gamma, trace=TRUE, control=list())
lstar(series, m, d, steps, mL=m, mH=m, thVar,
phi1, phi2, th, gamma, trace=TRUE, control=list())
control
list to
optim
nlar
, subclass lstar
, i.e. a list
with fitted model informations.plogis(q, location = th, scale = 1/gamma)
, so see plogis
documentation for details on the logistic function formulation and parameters meanings.
The threshold variable can alternatively be specified by:
[object Object],[object Object],[object Object]Note that if starting values for phi1 and phi2 are provided, isn't necessary to specify mL and mH. Further, the user has to specify only one parameter between mTh, thDelay and thVar for indicating the threshold variable.
Estimation is done by minimizing residuals sum of squares with respect
to phi1, phi2, th and gamma, using the
optim
function, with its default optimization method. You
can pass further arguments directly to the 'control' list argument of
this function. For example, the option maxit
maybe useful when
there are convergence issues (see examples).
Note that lstar
is only a convenience wrapper to nlar (for not
having to specify m
, which can be deduced from the other parameters).
Non-Linear Time Series: A Dynamical Systems Approach, Tong, H., Oxford: Oxford University Press (1990).
plot.lstar
for details on plots produced for this model from the plot
generic.#fit a LSTAR model. Note 'maxit': slow convergence
mod.lstar <- lstar(log10(lynx), m=2, mTh=c(0,1), control=list(maxit=3000))
mod.lstar
Run the code above in your browser using DataLab