Hi. *If my source is correct that HHI is calculated by squaring the market shares of all firms in a market and then summing the squares, then you can create that variable in syntax:
*Create some test data.
dataset close all.
new file.
data list free / ms1 to ms4 (4F2).
begin data.
40 30 20 10
20 60 10 10
25 25 25 25
end data.
* Calculate HHI.
vector ms=ms1 to ms4.
loop #i=1 to 4.
compute hhi=hhi+ms(#i)**2.
leave hhi.
end loop.
list.
------------------------------
Rick Marcantonio
Quality Assurance
IBM
------------------------------
Original Message:
Sent: Thu December 22, 2022 03:44 PM
From: Dane Thompson
Subject: Herfindahl–Hirschman index
Hello,
I am trying to calculate the Herfindahl-Hirschman Index for a project I am working on. I'm sure that I could figure out how to do the background calculation myself, but I was hoping that one of you may know of a way to do this in SPSS. Any help would be appreciated!
------------------------------
Dane Thompson
------------------------------
#SPSSStatistics