Dear Statalist,
I want to count the number of unique individuals who are enrolled in multiple institutions at a specific year by wealth percentile. A concrete example:
My data is from 2009 to 2015. unique identifier of my panel is (personal id, institution id, year). Some people are enrolled in multiple institutions at a particular year, so there will be duplicates by (personal id, year). I want to plot the number of unique ids who are enrolled in multiple institutions against wealth distribution in year 2009.
how should I think of this problem? I am thinking to solve it in the following way:
1) generate wealth percentile for 2009. same individual have the same wealth in the same year, but if he is enrolled in multiple institutions, he will have several observations. in this case, he is counted several times. the wealth distribution will not be correctly calculated.
2) I want to generate a varaible that tells me which wealth distribution that person is in for the year 2009. then i can calculate number of unique ids grouped by each wealth percentile.
Will you please give me some suggestions on how to solve this?
Thank you for your time!
Best,
claire
I want to count the number of unique individuals who are enrolled in multiple institutions at a specific year by wealth percentile. A concrete example:
My data is from 2009 to 2015. unique identifier of my panel is (personal id, institution id, year). Some people are enrolled in multiple institutions at a particular year, so there will be duplicates by (personal id, year). I want to plot the number of unique ids who are enrolled in multiple institutions against wealth distribution in year 2009.
how should I think of this problem? I am thinking to solve it in the following way:
1) generate wealth percentile for 2009. same individual have the same wealth in the same year, but if he is enrolled in multiple institutions, he will have several observations. in this case, he is counted several times. the wealth distribution will not be correctly calculated.
2) I want to generate a varaible that tells me which wealth distribution that person is in for the year 2009. then i can calculate number of unique ids grouped by each wealth percentile.
Will you please give me some suggestions on how to solve this?
Thank you for your time!
Best,
claire
Comment