Hi everyone,
I have some troubles when using the "conindex" command. Each row of my dataset represents the risk suffered by a group of people. I use the following command to draw concentrated curves:
or
However, it seems that the results is not right, because the "conindex" command seems to regard each row of the dataset as the information of one person. So the X-axis(Rank of lowincom_rate) of concentration curve seems not be sorted by population percentage(As shown in the figure below). 
The dataset format is as follows: 
What could I do? Is there anyone could help me solve this problem. Thanks a lot.
Yuan Hui
I have some troubles when using the "conindex" command. Each row of my dataset represents the risk suffered by a group of people. I use the following command to draw concentrated curves:
Code:
conindex newrisk, truezero rankvar(lowincom_rate) graph
Code:
conindex newrisk [aweight=Population], truezero rankvar(lowincom_rate) graph
The dataset format is as follows:
What could I do? Is there anyone could help me solve this problem. Thanks a lot.
Yuan Hui

Comment