Help with translate Gauss code into Rats code
Posted: Fri Oct 03, 2014 7:02 pm
Hi, I am looking for help to translate the attached Gauss code into Rats code. Any help is highly appreciated.
A Forum for RATS Software and Econometrics Discussions
https://www.estima.com/forum/
Thanks, Tom. Actually, what I am interested in is that how they did Fama-MecBeth Two-Pass Regression with the time series data they have. That will be highly appreciated if you would kindly give some suggestions on how to do the two-pass regression in Rats.TomDoan wrote:That's almost never the correct approach. Most of that program is for doing the Kalman filter, which is handled in RATS using DLM, not 200 lines of matrix calculations. What you need to do is to figure out what is being done with the output from the Kalman filter. That appears to be a set of regressions, but what's regressed on what is the key.
Hi, Tom. I do not have their data. I attached the data and the code I used to replicate the Kalman filter part. Every thing works fine until the two pass regressions. I am looking forward to hearing from you.TomDoan wrote:Did they provide the data as well?
Their data is structured as a several collections of data with N (differing from collection to collection) separate series of T data points, where T is the same for all. The Kalman filter factors are generated using one collection of data, and they run various tests based upon a second collection of data.