Dear all,
I have time series and panel data for which I conduct an event study. In order to check for autocorrelation prior to my analysis, I need to do a Durbin-Watson test. However, I keep getting the error "time variable not set, use tsset varname..."
I applied the following code:
tsset Gvkey Date_
whereby Gvkey is the identifier for my panel data and the Date_ the time series identifier.
Could you maybe tell me what I did wrong?
Best
Anna
I have time series and panel data for which I conduct an event study. In order to check for autocorrelation prior to my analysis, I need to do a Durbin-Watson test. However, I keep getting the error "time variable not set, use tsset varname..."
I applied the following code:
tsset Gvkey Date_
whereby Gvkey is the identifier for my panel data and the Date_ the time series identifier.
Could you maybe tell me what I did wrong?
Best
Anna
Comment