Hi everyone,
I have implemented the following code within Stata, and the results are consistent with expectations. As can be seen below, the variable "sldummy" is being treated as endogenous, but the two dependent variables are exogenous.
My dataset is balanced, covering 12 years with 1,074 firms each year (for a total of 12,888 firm-year observations).
To recap, I have the following questions.
1. Is there a way to correct for serial correlation when using -cmp-?
2. Why do I get missing results in the first equation from the -cmp- command?
3. Could someone please comment as to whether changes need to be made to the specific -cmp- code I am using, so that sldummy is treated as endogenous (and all other variables as assumed to be exogenous)?
4. Alternatively, is there a way to control for heteroskedasticity when using -reg3-?
Thanks so much,
Courtney
I have implemented the following code within Stata, and the results are consistent with expectations. As can be seen below, the variable "sldummy" is being treated as endogenous, but the two dependent variables are exogenous.
The only problem with using these results is that I do have heteroskedasticity and serial correlation within the dataset. A suggestion online indicated that an advantage of -cmp- over -reg3- was that it would allow me to correct for the heteroskedasticity by using either -,robust- or -,cluster- commands. At this point, I still have not figured out a way to correct for the serial correlation using -cmp-. I have included the code (below) that I am trying to use with the -cmp- command. While the results do generate, almost all results for the first equation are missing (with the exception of the coefficients). Specifically, there are four variables (including one of the year indicators) that have have full results. The remaining variables have coefficients, but missing values for everything else. After searching online, it seems that a common suggestion is to check for collinearity. I have checked variance inflation factors, and also have run pairwise correlation tests for all of the variables, and all VIFs are below 2. There is never a correlation meeting or exceeding 50% when using the -corr- command. Thus, I'm at a loss as to why I'm not receiving full results for the first equation.
reg3 (wnetreins sldummy wra_roa3 wsize wsurplus wrelsize stock lob geo cat wnetextreins i.year) (wnetextreins sldummy wra_roa3 wsize wsurplus wrelsize stock lob geo cat wnetreins i.year), endog (sldummy) exog(wnetreins wnetextreins)
Additionally, I do not think that my code for the -cmp- command is acknowledging that the sldummy variable is to be treated as endogenous. I have spent a lot of time reading from the -help cmp- file, but it's very complicated code. I would just like to be sure that I'm essentially running the model from my -reg3- code using the -cmp- command, with the only change being that I correct for the heteroskedasticity.
cmp (wnetreins = sldummy wra_roa3 wsize wsurplus wrelsize stock lob geo cat wnetextreins i.year) (wnetextreins = sldummy wra_roa3 wsize wsurplus wrelsize stock lob geo cat wnetreins i.year), ind ($cmp_cont $cmp_cont) cluster(cocode) difficult nonrtolerance tech(dfp)
My dataset is balanced, covering 12 years with 1,074 firms each year (for a total of 12,888 firm-year observations).
To recap, I have the following questions.
1. Is there a way to correct for serial correlation when using -cmp-?
2. Why do I get missing results in the first equation from the -cmp- command?
3. Could someone please comment as to whether changes need to be made to the specific -cmp- code I am using, so that sldummy is treated as endogenous (and all other variables as assumed to be exogenous)?
4. Alternatively, is there a way to control for heteroskedasticity when using -reg3-?
Thanks so much,
Courtney
Comment