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
Categorial Variable has Collinearity with Fixed Effects? Help!I'm in urgent need of help and would seriously appreciate your time! I am conducting a regression of…
Problem specifying conditions with ipolate commandHello, I have yearly panel data on 4 variables for all U.S. states, and the data are in wide format…
Sparse group Lasso for multinomial logistic regressionHi everyone, I'm planning to do a multinomial logistic regression and would like to use the sparse …
Loop for adding values of every observation within variableHello statalisters, I regard my puzzle as symple but I cannot get my head around it and I have alre…
generating a Diff-inDiff outcomeHi Everyone, I have this data example below where I need to generate a Diff-outcome. The outcome is…
Subscribe to:
Post Comments (Atom)
0 Response to Finding out proportions by groups
Post a Comment