Dear All,
I hope you are staying well and keeping safe. I am new to variable creating codes and would be very grateful if you could advise on the following issue that I have been struggling with for the last few days.
I have a panel dataset and need to calculate an innovation score for each firm within the same industry using the following formula:
Innovation score = (number of firms with a worse value + (number of firms with the same value as the current firm's value/2))/ total number of firms. For example, let say there 10 firms in one industry and the focal firm's value is 80. There is another firm that has the same value. All other firms have scores lower than 80. So the score will be = (8 + (2/2))/10 = 0.90.
I need to calculate for all firms within other industries.
Many thanks in advance and best wishes.
Related Posts with Calculating a score for each firm within the same industry
New to stata, Impossible problem for a summary table?Hello all- I'm so glad I found this forum! I've just started working with stata for a biostats class…
Maximum number of iterations exceededHello, I hope you guys are doing well. I am estimating a model using panel ardl techniques, namely …
Reshape Wide IssueHi, I have been trying to reshape my data from long to wide format using reshape wide. The data look…
How to convert SIC codes into Fama French 12Hello, I am a uni student and I'm terrible with computers. For a project that is due in a week, we a…
Calculating F-statistic after constrained regressionI have run this unconstrained regression *Model: lcost=ß_1+ß_2loutput+ ß_3plabor+ ß_4lcapital+ß_5lpf…
Subscribe to:
Post Comments (Atom)
0 Response to Calculating a score for each firm within the same industry
Post a Comment