I am new to this stuff so please excuse me if an answer already exists but I certainly can't find it.
I have a panel data (year, firm, industry, DP, SG, CEV, AGE) and I have to group data by industry, for each industry I have to split the data into quartiles by some variables (by DP, SG, CEV and AGE..). Once a firm-year is assigned to a group (Q1, Q2..Q4), it's given a score (e.x Q1=1, Q2=2..). After that, I must tally the scores for each firm-year and split all into quartiles again.
Is there a way for me to do it in stata?
Many thanks!
I have a panel data (year, firm, industry, DP, SG, CEV, AGE) and I have to group data by industry, for each industry I have to split the data into quartiles by some variables (by DP, SG, CEV and AGE..). Once a firm-year is assigned to a group (Q1, Q2..Q4), it's given a score (e.x Q1=1, Q2=2..). After that, I must tally the scores for each firm-year and split all into quartiles again.
Is there a way for me to do it in stata?
Many thanks!
Comment