Hello all,
I have Var1, which is postal codes, and Var2, dissemination area codes, for which there are multiple dissemination areas assigned to each postal code. I also have Var 3, which is the total population of each dissemination area.
I would like to choose and only keep the most populous dissemination area for each postal code. In other words, I'd like to remove repeated values in my postal code variable, keeping only the postal code which corresponds to the most populous dissemination area.
Note also that some dissemination areas are also repeated among different postal codes; the same dissemination area may be found to be the most populous for multiple postal codes.
Any help greatly appreciated, thank you.
Related Posts with Choosing the highest value of a variable in each category corresponding to another variable
standard error of 8280 in multinominal logitHi, I am analysing my data using multinominal logit. Firstly sorry that I cannot post my data and f…
Assistance on Statistical analysisCan anyone help me out? I am investigating the coping strategies used among women by using the Brief…
Estimating adjusted means and 95% CI using regression stataDear all, Now i am analyzing a repeated measurable longitudinal data. by linear regress model, Y, …
Time stamps in forum softwareIs there any chance the forum software could be changed to specify time zone in the time stamps? Rig…
Using anymatch in a forvalue loop to detect if each value in v1 matches ANY value in v2I'm struggling to come up with a solution for finding if each observation in variable 1 matches ANY …
Subscribe to:
Post Comments (Atom)
0 Response to Choosing the highest value of a variable in each category corresponding to another variable
Post a Comment