Stata Blogger?

Are you a Stata blogger? Join the aggregator!

Robust Hausman test for FE vs RE

For quite a while I was writing a program to perform a Hausman test to compare Fixed vs Random Effects in Stata when the estimates were calculated using cluster-robust standard errors, since in this case the usual Hausman test is not suitable. Just when I was about to finish with it, I found out that there is already a user-written program that does […]

Continue reading Robust Hausman test for FE vs RE

Manipulating variable labels

Occasionally we want to use variable labels in loops or we want to apply them to other labels. a very simple local syntax function for that is local localname: variable label varname. As an example, suppose that I have three variables (x, y, z) with their respective labels. I want to create three other variables […]

Continue reading Manipulating variable labels

Dialog box in Stata

Sometimes it is useful to have the dialog box for Stata commands, especially for the ones where the syntax is complex, such as the graphic commands. If you know the name of the command (e.g. regress)  but you don’t know how to access the dialog box from the drop down menus, you can always type: db […]

Continue reading Dialog box in Stata