Statalist,
I'm trying to do a merge between two datasets that have different characteristics for the same company. One dataset has the company id and the production by product, and the other dataset has the company id and the share of its total operations by city. I want to create a resulting dataset that prorates the production by product to each city according to the city shares. I thought that this would be a good chance to use a m:m merge, but it's giving me bad results. What other approach would you use to deal with this situation?
Thanks,
Jose
I'm trying to do a merge between two datasets that have different characteristics for the same company. One dataset has the company id and the production by product, and the other dataset has the company id and the share of its total operations by city. I want to create a resulting dataset that prorates the production by product to each city according to the city shares. I thought that this would be a good chance to use a m:m merge, but it's giving me bad results. What other approach would you use to deal with this situation?
Thanks,
Jose
Comment