Here is example of my data
Any one run concentration curve with twoway option and give me full set of command as I can run.
I have get the command of concentration curve from this forum but they are not working properly.
Code:
----------------------- copy starting from the next line -----------------------

Code:
* Example generated by -dataex-. To install: ssc install dataex
clear
input float(healthExp_perAiling365days urban pcExp_index)
    10875 1 .015789473
     1465 1 .016081871
        . 1 .013784462
        . 1 .016290726
     6900 1 .028822055
    62875 1  .01949318
    30500 1   .0877193
        . 1  .02631579
        . 1 .014619882
    27420 1  .03007519
     9500 1 .013157895
        . 1 .019298246
     1350 1  .03625731
     5800 1  .02436647
    12150 1   .0497076
    48000 1  .05409357
     6400 1  .11695906
     9930 1  .02105263
        . 1  .04824561
        . 1 .019298246
    41750 1  .09868421
     6400 1  .01754386
     5300 1 .012280702
    12550 1 .012531328
16066.667 1 .014619882
     9200 1 .015789473
        . 1  .05263158
        . 1  .00877193
        . 1  .00877193
        . 1 .015037594
    48000 1  .00877193
    22200 1 .014035088
    37600 1 .023391813
     9300 1 .005582137
        . 1 .011695907
        . 1  .01754386
    12000 1  .04824561
        . 1  .04385965
    28735 1  .02631579
     5210 1 .018421052
    18625 1 .016447369
   2792.5 1 .028822055
        . 1  .02526316
        . 1  .03508772
    12900 1  .01900585
     3500 1  .02255639
    46700 1 .037037037
    55800 1 .021929825
    16600 1  .02105263
     6800 1 .012531328
        . 1  .02631579
        . 1 .014619882
     2040 0 .013157895
     8100 0 .013784462
    11685 0 .014619882
        . 0 .013157895
    16145 0 .011695907
    14600 0 .030701755
     3725 0  .01754386
        . 0 .013157895
     5120 0 .015497075
      587 0 .015789473
     6000 0 .014619882
        0 0  .01453634
    12330 0 .019298246
      260 0 .015350877
      190 0 .014035088
        . 0 .015350877
     2300 0  .00877193
     2550 0  .04385965
     4350 0 .013157895
        . 0  .03508772
    13600 0 .029239764
      280 0  .03947368
      430 0  .03007519
        . 0 .028070176
     5760 0  .01754386
    10090 0  .02631579
     8470 0 .011278195
        . 0  .03508772
        . 0 .009569378
    17980 0 .020467836
    20900 0  .01754386
        . 0  .02631579
     3600 0 .028822055
13166.667 0 .021929825
    16260 0  .04093567
        . 0  .03508772
     2500 0 .011695907
    27300 0  .03508772
     8500 0  .01754386
        . 0  .02631579
    27600 0 .014786967
      740 0  .01190476
     7900 0 .011695907
    80470 0 .021929825
      670 0  .03508772
    28505 0 .021929825
        . 0 .028070176
        . 0 .012280702
end
------------------ copy up to and including the previous line ------------------

Listed 100 out of 101 observations
Use the count() option to list more

.
Where urban 0=rural 1=urban my variable of interest is healthExp_perAiling365days and ranking variables pcExp_index and replaced by urban

Any one can help me, please ...