Hello everybody,
I am new to stata and up till now previous posts helped me to where I am now, thanks for that to all.
I have ran a rangestat regression to get the coefficient for a four factor model regression, I think I succeeded in this. For this I used the following regression
rangestat (reg) ER ERM SMB HML WML , interval(Date . -1)
The problem however is that when I want to use the coefficient in another regression: xtreg, this returns the error message: r2000 no observations.
This regression I mentioned does not have string variables, but does have missing values so I think the panel data is unbalanced. (or a more obvious problem I do not see now)
For the first regression mentioned below there is a table that is produced, but with a zero as the coefficient in the results, for the second one not even a table can be produced mentioning the error r2000: no observations.
xtreg b_consNet Ratingnr i.Date
outreg2 using 1.1A1.doc, replace ctitle (1) tstat addtext (Firm FE, YES, Time FE, YES)
xtreg b_consNet SRI EstimatedFundLevelNetFlow Averagetimereturn Tenurelongest Age Turnover NETER Holdings Stdev Load dummy90 SIZE_ln i.Date
outreg2 using 1.2A.doc, replace ctitle (1) tstat addtext (Firm FE, YES, Time FE, YES)
I really do not know where I go wrong. Do you guys have any tips or pointers that can lead me in the right direction? Or things I can adapt to rewrite my code that it works correctly?
Thanks in advance,
Jur
I am new to stata and up till now previous posts helped me to where I am now, thanks for that to all.
I have ran a rangestat regression to get the coefficient for a four factor model regression, I think I succeeded in this. For this I used the following regression
rangestat (reg) ER ERM SMB HML WML , interval(Date . -1)
The problem however is that when I want to use the coefficient in another regression: xtreg, this returns the error message: r2000 no observations.
This regression I mentioned does not have string variables, but does have missing values so I think the panel data is unbalanced. (or a more obvious problem I do not see now)
For the first regression mentioned below there is a table that is produced, but with a zero as the coefficient in the results, for the second one not even a table can be produced mentioning the error r2000: no observations.
xtreg b_consNet Ratingnr i.Date
outreg2 using 1.1A1.doc, replace ctitle (1) tstat addtext (Firm FE, YES, Time FE, YES)
xtreg b_consNet SRI EstimatedFundLevelNetFlow Averagetimereturn Tenurelongest Age Turnover NETER Holdings Stdev Load dummy90 SIZE_ln i.Date
outreg2 using 1.2A.doc, replace ctitle (1) tstat addtext (Firm FE, YES, Time FE, YES)
I really do not know where I go wrong. Do you guys have any tips or pointers that can lead me in the right direction? Or things I can adapt to rewrite my code that it works correctly?
Thanks in advance,
Jur
Comment