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
Probit lagged variables- panel dataDear Statalist members, I'm trying to write my dissertation and need your help -I am new to Stata. …
Test to back-up use of OLS over logit/probitI'm conducting a DiD analysis using OLS and I want to verify the robustness of my results by validat…
Combining two discrete variables into one percentageI'm trying to combine two discrete variables, in this case, cmarried - number of children from marri…
Hadri LM unit root testHi all, I use balanced panel data N=43, T=24 and I want to use Hadri LM unit root test for initial …
Why does country effects in fixed effects model are omitted?Hi everyone, I am running a fixed effects regression. Upon choosing "i.country" for country fixed ef…
Subscribe to:
Post Comments (Atom)
0 Response to Finding out proportions by groups
Post a Comment