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
Interaction terms in panel dataDear all, I am currently working on my master thesis : i am analyzing the link between board gender…
Missing data are not missing - how to make a date field blank?Hi. I am a new user and have a somewhat strange question: I have a dataset with observations (rows)…
Unrecognized command (spbalance)Dear Stata senior users, I am preparing my spatial panel data without shapefile (as instructed at ht…
Set a specific folder to save regression outputs and graphsHello! I need to set a specific folder (directory), different from the current working directory, t…
System GMM omitted variablesDear Sirs, I have received the following comment from a reviewer: "what are the main omitted variab…
Subscribe to:
Post Comments (Atom)
0 Response to Creating deciles/quintiles based on a certain group of observations by year
Post a Comment