Hi all,
I am trying to calculate a variable "in-state-competition", which is the fraction of total SIC two digit industry sales (excluding the firm itself) generated by in-state competitors.
Can anyone help me with a solution to this? I use panel data that the following Structure:
I am trying to calculate a variable "in-state-competition", which is the fraction of total SIC two digit industry sales (excluding the firm itself) generated by in-state competitors.
Can anyone help me with a solution to this? I use panel data that the following Structure:
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input str6 gvkey double fyear str4 sic double sale "001004" 1993 "5080" . "001004" 1994 "5080" 451.395 "001004" 1995 "5080" 504.99 "001004" 1996 "5080" 589.328 "001004" 1997 "5080" 782.123 "001004" 1998 "5080" 918.036 "001004" 1999 "5080" 1024.333 "001004" 2000 "5080" 874.255 "001004" 2001 "5080" 638.721 "001004" 2002 "5080" 606.337 "001004" 2003 "5080" 651.958 end
Comment