Hello
How do I calculate the Gini coefficient with the equivalent scale method using these data for Iranian provinces?
Thank you for your help
copy starting from the next line -----------------------
[CODE]
* Example generated by -dataex-. To install: ssc install dataex
clear
input str10 FamilyCode str2 provincecode byte Familysize long Householdcost byte(Numberadults Numberchildren)
"1000001172" "00" 4 78334098 4 0
"1000001177" "00" 6 124493597 6 0
"1000001180" "00" 4 115916220 3 1
"1000001181" "00" 4 63545000 3 1
"1000001184" "00" 4 103888600 2 2
"1000002116" "00" 4 115661600 2 2
"1000002119" "00" 5 156830000 2 3
"1000002124" "00" 4 994439280 4 0
"1000002127" "00" 2 150594000 2 0
"1000002130" "00" 5 146479600 4 1
"1000003143" "00" 5 121195000 4 1
"1000003145" "00" 1 42448000 1 0
"1000003150" "00" 2 101412000 2 0
"1000003153" "00" 2 96551000 1 1
"1000003156" "00" 2 61212000 2 0
"1000004005" "00" 3 131909000 2 1
"1000004009" "00" 4 107020000 3 1
"1000004010" "00" 1 40432000 1 0
"1000004014" "00" 2 37930000 2 0
"1000004016" "00" 5 191457000 2 3
"1000005098" "00" 2 108519943 2 0
"1000005101" "00" 2 160819200 2 0
"1000005106" "00" 1 21633000 1 0
"1000005109" "00" 4 94584517 3 1
"1000005112" "00" 4 33786952 4 0
"1000006006" "00" 4 183120000 2 2
"1000006007" "00" 3 114319000 3 0
"1000006010" "00" 2 227814000 2 0
"1000006013" "00" 4 251007000 4 0
"1000006018" "00" 2 294332000 2 0
"1000007005" "00" 4 238293000 4 0
"1000007009" "00" 2 74866000 2 0
"1000007010" "00" 3 206883500 2 1
"1000007013" "00" 4 168588000 4 0
"1000007018" "00" 4 361011000 2 2
"1000008155" "00" 4 334840000 3 1
"1000008159" "00" 1 67788000 1 0
"1000008162" "00" 3 151027000 2 1
"1000008165" "00" 4 126243000 4 0
"1000008168" "00" 1 89873360 1 0
"1000009004" "00" 4 95095000 3 1
"1000009009" "00" 3 136062400 3 0
"1000009010" "00" 2 105246510 2 0
"1000009015" "00" 3 57519600 3 0
"1000009016" "00" 5 145923778 5 0
"1000010152" "00" 3 115182000 2 1
"1000010156" "00" 3 178105000 2 1
"1000010159" "00" 3 292254000 2 1
"1000010162" "00" 5 240781000 4 1
"1000010163" "00" 1 86730000 1 0