You are confusing locals and scalars.
If you go
local lags "2 6"
arima ts, ar(`lags')
you should make progress.
Nick
[email protected]
Engelmann, Bjoern
> 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
> arima?
>
> 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:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/