Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Re: Stata Code for arma processes


From   "Clive Nicholas" <[email protected]>
To   [email protected]
Subject   Re: st: Re: Stata Code for arma processes
Date   Mon, 16 Aug 2004 21:15:15 +0100 (BST)

Kit Baum replied to Teofilo Ozuna:

> I would just suggest starting from first principles, as one would in
> performing a Monte Carlo experiment, and writing the data generating
> process. E.g. for an AR(2) model, one can just do
>
> clear
> set obs 1000
> g t = _n
> tsset t
> * AR(2)
> g eps1 = invnorm(uniform())
> scalar theta0= 100
> scalar theta1= 0.6
> scalar theta2= -0.3
> g double ar2 = 0
> qui replace ar2 in 3/l = theta0 + theta1*L.ar2 + theta2*L2.ar2 + eps1
> su
> * should reproduce the parameters of the model (arima not needed for
> pure AR)
> reg ar2 L(1/2).ar2

In a reply I posted to Chris Carambas a couple of weeks ago, I mentioned
the GLS-ARMA procedure described by Stimson (1985). I couldn't find
anything on it using -findit- or -net search-. Is this handled
automatically in -arima-, or can the above code be modified to achieve
this?

CLIVE NICHOLAS        |t: 0(044)191 222 5969
Politics              |e: [email protected]
Newcastle University  |http://www.ncl.ac.uk/geps

Stimson, JA (1985) "Regression in Space and Time: A Statistical Essay"
AMER J POL SCI 29(4): 914-47
*
*   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