[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: RE: lags in arima
You are confusing locals and scalars.
If you go
local lags "2 6"
arima ts, ar(`lags')
you should make progress.
> I want to fit automatically different types of arima-models
> to some data.
> How do I get the correct variables into the lag Parameter arguments of
> I've already tried something like
> scalar lags="2 6"
> arima ts, ar(`lags')
> but stata simply ignores my variable and fits an arima(0,0) model.
> Somehow I would need to have a variable with a numlist stored
> in it, but I
> don't know how to create such a variable.
* For searches and help try: