Dear Statalist,
I am new to Stata and trying to make percentiles of percentiles through xtile, but I do still not know how to do it exactly. I have a panel data with the ID of the company (companyID) and the year (year), revenues (rev) and a variable cost of goods sold (cogs).
What I want to do is the following:
1. Sort stocks into two revenues groups (Big stocks are those in the top 90% revenues, and small stocks are those in the bottom 10%)
2. Sort stocks into three cost of good sold groups (breakpoints are 30th and 70th percentiles)
3. Sort stocks further with the independent 2x3 sorts on revenues and cost of goods sold produce six portfolios, SG, SN, SV, BG, BN, and BV, where S and B indicate small or big and G, N, and V indicate growth (low cost of goods sold), neutral, and value (high cost of goods sold).
Any help would be appreciated !
Thanks in advance,
Greetings!
I am new to Stata and trying to make percentiles of percentiles through xtile, but I do still not know how to do it exactly. I have a panel data with the ID of the company (companyID) and the year (year), revenues (rev) and a variable cost of goods sold (cogs).
What I want to do is the following:
1. Sort stocks into two revenues groups (Big stocks are those in the top 90% revenues, and small stocks are those in the bottom 10%)
2. Sort stocks into three cost of good sold groups (breakpoints are 30th and 70th percentiles)
3. Sort stocks further with the independent 2x3 sorts on revenues and cost of goods sold produce six portfolios, SG, SN, SV, BG, BN, and BV, where S and B indicate small or big and G, N, and V indicate growth (low cost of goods sold), neutral, and value (high cost of goods sold).
Any help would be appreciated !
Thanks in advance,
Greetings!
Comment