lstar(x, m, d=1, steps=d, series, mL, mH, thDelay,
th, gamma, trace=TRUE, control=list())lstar(series, m, d, steps, mL, mH, mTh,
th, gamma, trace=TRUE, control=list())
lstar(series, m, d, steps, mL=m, mH=m, thVar,
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 analytically determining phi1 and phi2
(through linear regression) and then minimizing residuals sum of squares
with respect to th and gamma. These two steps are repeated
until convergence is achieved. For the nonlinear estimation of the
parameters th and gamma, the program uses the
optim
function, with its default optimization method. You
can pass further arguments directly to the 'control' list argument of
this function. For istance, the option maxit
maybe useful when
there are convergence issues (see examples).
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