Saving coefficients with an AR(1) term
Posted: Tue Dec 30, 2008 3:13 am
I want to estimate an equation with an AR(1) term and save the coefficients. I can specify an equation as follows:
equation equ1.ls x1 c y1 y2 ar(1)
but this does not save the coefficients. The usual way of saving coefficients is to specify an equation like so:
equation equ1.ls x1=c(1)+c2)*y1+c(3)*y2
where the coefficients are saved as c(1), c(2) etc. You cannot, however specify an ar(1) term using this method. Do you know how I can include an AR(1) term and save the coefficients?
equation equ1.ls x1 c y1 y2 ar(1)
but this does not save the coefficients. The usual way of saving coefficients is to specify an equation like so:
equation equ1.ls x1=c(1)+c2)*y1+c(3)*y2
where the coefficients are saved as c(1), c(2) etc. You cannot, however specify an ar(1) term using this method. Do you know how I can include an AR(1) term and save the coefficients?