Dear all,
I am trying to get auditor tenure from Compustat. They only have auditor information, so, I have to count how many years that auditor works for the client since 1995 as the tenure variable. Can someone please help me?
So far, I already
- got the ‘basic’ data: gvkey, fyear, au (auditor code), etc. for each firm year
- append audit firm for the previous year (you could do a ‘data step’ with a lagged value here)
- make an indicator variable auditChange to equal 1 if the audit firm last year was a different one
- how do I create a count variable "Tenure" now that increments by one each year the auditor does not change for a company?
Thanks a lot in advance!
I am trying to get auditor tenure from Compustat. They only have auditor information, so, I have to count how many years that auditor works for the client since 1995 as the tenure variable. Can someone please help me?
So far, I already
- got the ‘basic’ data: gvkey, fyear, au (auditor code), etc. for each firm year
- append audit firm for the previous year (you could do a ‘data step’ with a lagged value here)
- make an indicator variable auditChange to equal 1 if the audit firm last year was a different one
- how do I create a count variable "Tenure" now that increments by one each year the auditor does not change for a company?
Thanks a lot in advance!
Comment