Hello
I have a panel data of all NYSE, AMEX and NASDAQ firms. I am trying to create size deciles based on total assets but only want to use the NYSE firms to set up the cutpoints.
How do I create size deciles by year (for all firms), but just based on the NYSE (i have the stock exchange code) cutpoints.
I used egen sizedecile = xtile(size), by (year) nq (10)
The problem is that it uses all firms to create the cutoff points.
Thank you!
Related Posts with Creating deciles/quintiles based on a certain group of observations by year
Controls in IV model are correlated with instrument?I am seeking to understand what it means for my IV model (2SLS, in Stata) if my controls are correla…
Keeping the latest date when difference between two dates is 1 or 2 or 0 Hi, I want to retain the latest date when the difference between two BOD meeting dates is 1 or 2 o…
SPSS Command to STATAHello all; Anybody know how to transform the following SPSS command into a STATA command? Thank you…
Convert variables to numeric results in data loss when a regression is runDear all, A dataset with 11 variables was imported to STATA using File -> Import Excel spreadshe…
Exporting regressions to excel Effect of various farm practices on crop yield (Kg/Acre) Lentil Lentil green gram gree…
Subscribe to:
Post Comments (Atom)
0 Response to Creating deciles/quintiles based on a certain group of observations by year
Post a Comment