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
Panel Data: Comparison of ObservationsHello, I would like to specify a variable that indicates the ratio of new names to the total number …
Generate a new date variable from a panel dataDear all, I tried coding (see below) to generate a new date variable in month from a large panel dat…
predicting effectDear colleagues I'm thinking of a method to isolate the effect of a particular variable (X) on say …
Aggregate individual-level data into household-level dataHi. I am working with a survey that gathers information on an individual level. The survey asks all …
Equivalent command to Ctsem in STATA ?Dear honourable members, Please I would like to know if in STATA there is an equivalent command to …
Subscribe to:
Post Comments (Atom)
0 Response to Finding out proportions by groups
Post a Comment