I obtained the gauss code used for the estimation of the paper "X-DIFFERENCING AND DYNAMIC PANEL MODEL ESTIMATION" by Han et al. (forthcoming in Economic Theory).
The results are based on simulation. Was wondering how to apply the code using my own data.
Could post/send the code if needed.
Post the code and we can get you going.
Thanks. I have copied and paste the code in this box a couple of times since yesterday but for some reasons it is not appearing. Any other way to post it? please?
Thanks for posting the code. I copied and formatted it and then created a download link for the code:
Download a zip file containing the code, x_diff_dynamic_panel_estimation.zip
I wasn't able to find the paper you cited at Economic Theory so I'm not sure what the structure of the data is.
The program itself has two infinite loops. I changed lines 149 on
iccc = iccc + 1;
icase = icase + 1;
ipcase = ipcase + 1;
and was able to get the program to run. I also added print statements at line 146:
t2 = (b8-rho)./w;
tsim[is,.] = t2;
I'm guessing that b8 is a coefficient, and t2 a t-statistic, but I could be wrong. To use this on your data, extract lines 97 through 145 into another file, set y to a vector of your data, and set t to some value (I don't know what value it should be because I haven't seen the paper). You also need to add some code to estimate or set a value for rho. Then put print statements at the end printing out whatever results you need. I'm not sure this is right, but it might be.
Thanks so much Ron.
With regard to the paper I have found the working paper version: http://cowles.econ.yale.edu/P/cd/d17a/d1747.pdf
Many thanks again.