Recursive Least square

Econometrics questions and discussions

Recursive Least square

Postby comac » Wed Jul 22, 2009 8:06 am

Dear Tom,

I should model a rls regression of the type:

rls(options) lY / resids
# const lk ll {leads and lags of the covariates}

I should restrict lk + ll =1 and all leads and lags to be equal zero (for instence).
If I impose the restriction by using the 'restrict' or 'mrestrict' option, the 'cohist' series will rely on the basic rls regression with no restrrictions.What can i do?

Thank you
comac
 
Posts: 26
Joined: Mon Jun 29, 2009 7:31 am

Re: Recursive Least square

Postby TomDoan » Thu Jul 23, 2009 7:56 am

RLS won't handle restrictions like that. Is there a reason that you're including variables for which you want zero restrictions? If you're trying to do sequential exclusion restrictions, the way to do that is to run two RLS's (over the same range) and use the CSQUARED values to construct the F-statistics:

Code: Select all
rls(csquared=csquaredunr,dfhistory=dfunr) rate
# constant rate{1 to 6}
rls(csquared=csquaredres,dfhistory=dfres) rate %regstart() *
# constant rate{1}
set frunning = (csquaredres-csquaredunr)/(dfres-dfunr)/(csquaredunr/dfunr)
graph
# frunning


The other restriction would be done similarly, except you would have to use a constructed regressor to code the restriction.

It's also possible to do the restricted regressions in the original form by recursive least squares using the KALMAN instruction (which isn't picky about singular covariance matrices). But that's quite a bit more complicated.
TomDoan
 
Posts: 2720
Joined: Wed Nov 01, 2006 5:36 pm


Return to General Econometrics

Who is online

Users browsing this forum: No registered users and 1 guest