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
Plotting results after running mixed effects modelHi All I've run the follwoing mixed effects model with linear splines to look at change in multimor…
explained varianceHello I have calculated a multilevel interaction effect using gsem, very much the same as example 38…
spmap - adding a square to the mapDear Statalist How can I draw a square around a specific section on the map without using the graph …
margins & marginsplot after mixed effect/multilevel modellingHi All I've used linear spline multilevel modelling to analyses rate in change of multimorbidity in…
Marginsplot Predicted Probabillity Bar GraphDoes know how to perform a marginsplot to predict the probability of two categorical variables (e.g.…
Subscribe to:
Post Comments (Atom)
0 Response to Finding out proportions by groups
Post a Comment