Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: lags in arima


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: lags in arima
Date   Wed, 3 May 2006 13:10:27 +0100

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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index