Dear Stata users,
I am working on my master thesis Finance at the moment and I am trying to calculate the Cumulative Abnormal Return (CAR3) (i.e. [-1, +1] for each company ID. However, the companies researched has multiple announcement (i.e. event) at once or are announced the day after one has been announced. Does anyone know what command I should use? I looked up the Stata commands for a single event per company ID. This is noted as:
sort company_id date by company_id: gen datenum=_n by company_id: gen target=datenum if date==event_date egen td=min(target), by(company_id) drop target gen dif=datenum-td
by company_id: gen event_window=1 if dif>=-2 & dif<=2 egen count_event_obs=count(event_window), by(company_id) by company_id: gen estimation_window=1 if dif<-30 & dif>=-60 egen count_est_obs=count(estimation_window), by(company_id) replace event_window=0 if event_window==. replace estimation_window=0 if estimation_window==. Looking forward to hearing from you.
Kind regards,
Tony
I am working on my master thesis Finance at the moment and I am trying to calculate the Cumulative Abnormal Return (CAR3) (i.e. [-1, +1] for each company ID. However, the companies researched has multiple announcement (i.e. event) at once or are announced the day after one has been announced. Does anyone know what command I should use? I looked up the Stata commands for a single event per company ID. This is noted as:
sort company_id date by company_id: gen datenum=_n by company_id: gen target=datenum if date==event_date egen td=min(target), by(company_id) drop target gen dif=datenum-td
by company_id: gen event_window=1 if dif>=-2 & dif<=2 egen count_event_obs=count(event_window), by(company_id) by company_id: gen estimation_window=1 if dif<-30 & dif>=-60 egen count_est_obs=count(estimation_window), by(company_id) replace event_window=0 if event_window==. replace estimation_window=0 if estimation_window==. Looking forward to hearing from you.
Kind regards,
Tony
Comment