Hello everyone,
I'm struggling with one piece of code and am hoping I can get some help here. I have a dataset where I have two variables: Firm ID and the areas it serves given by Area_Code. Each row in my dataset represents a customer served by the firm and I have multiple customers per area code. I want to calculate the percentage of customers served by a firm in each area_code. For example, the percent of customers of Firm 1 in area_code 001 and so on.
I would really appreciate any ideas around this.
Happy to answer any clarifications if my ask is not clear.
Thank you in advance for any help!
Related Posts with Finding out proportions by groups
Generate mean and median test results in StataDear Stata Users: I am trying to generate mean and median test results in Stata. Thanks to Kain Chen…
Generating a new variable based on several specified conditionsDear Stata-Community, I am currently working on a paper in which I want to create a variable that in…
Create several nested regression tables in the same file with asdocDear all, I want to create several nested regression tables in the same file and do it with option …
Type mismatch issues with generating / replacingHi all, I'm currently trying to create a dummy variable, inlaborforce, using the below code: gen i…
Test for differences in Medians for Multiple Variables Using qregDear Stata Users: I would like to Test for differences in Medians for Multiple Variables Using qreg …
Subscribe to:
Post Comments (Atom)
0 Response to Finding out proportions by groups
Post a Comment