rsaggio87 / LeaveOutTwoWay

Bias corrected estimates of variance components in two fixed effects models as described in Kline, Saggio and Sølvsten (2020)
24 stars 11 forks source link

Error with graphprofile.m #26

Open ithinkidunno opened 3 years ago

ithinkidunno commented 3 years ago

Thank you for making this code available. It is very helpful.

I am trying to debug the code using my data and the csv file you provided on Github but I am having some trouble.

When I run the function leave_out_KSS.m, Section 1 is working perfectly. But the code breaks in Section 2 where I have the following message:

In the file graphprofille.m, it seems that all the file is commented, so I don’t really understand what the file is doing. Apologies if it is a trivial question. I wanted to uncomment the lines that compute B,D, and M but I don’t really know how do you get B?

rsaggio87 commented 3 years ago

Graphprofile is a function within the CMG package which is an exterior package that needs to be installed at the beginning before running KSS, see screenshot

image

It is possible that something went wrong when installing CMG in your computer. Can you try running, instead of the highlighted line above, just the following “installCMG(1)” and see if you get any error?

Also which operating system are you running? Which matlab version?

rsaggio87 commented 3 years ago

I believe this error is caused by not having a compiler in a mac OS system. https://www.mathworks.com/support/requirements/supported-compilers.html#tab_e830252e-54c7-44c2-bd49-1d013a9f45bd_1

ithinkidunno commented 3 years ago

Thanks a lot for the answer. It is working now. I had to do the following modification:

I am using Matlab2021a and everything works perfectly.

Thank you so much! Best, bocar