After running the following command for a number of companies I get the following error:
forvalues i=1(1)487 {
2. l id group_ID if id==`i' & dif==0
3. reg ret market_return if id==`i' & estimation_window==1
4. predict p if id==`i'
5. replace predicted_return = p if id==`i' & event_window==1
6. drop p
7. }
No observations
r(2000);
Does this error imply that I have missing values or observations that are equal to 0 in my dataset?
forvalues i=1(1)487 {
2. l id group_ID if id==`i' & dif==0
3. reg ret market_return if id==`i' & estimation_window==1
4. predict p if id==`i'
5. replace predicted_return = p if id==`i' & event_window==1
6. drop p
7. }
No observations
r(2000);
Does this error imply that I have missing values or observations that are equal to 0 in my dataset?
Comment