Hello,
Can you please help me with the following issue: I want to form deciles based on the credit rating for different bonds.
The credit rating variable (rating_num) can take values between 1 and 22.
I tried 2 different methods and they yield the same result:
bys monthly_dates: astile decile_cr_monthly = rating_num, nq(10)
egen decile_r_num = xtile(rating_num ) , by(monthly_dates ) nq(10)
The problem is that in deciles 5 and 7 I have 0 observations.
I understand that this is due to the cutoff point.
I was wondering if there is a way to define the cutoff points such that I have observations in each of the 10 deciles?
Thank you very much for your help!
Related Posts with Form deciles with no 0 observations
Hausman testHi, I'm running a panel regression. These are my panel commands, followed by regression commands fo…
how to export results from a regression to excel, using STATA 13Hi, Could someone help me with exporting me regression table to Excel. I have tried "copy table" an…
WlsI want to obtain WLS(Weighted Least Square) estimate susing -[aweight]- , I do not know what should …
Joint significance of interactionsHello Everybody! I have a model y = 50+0.3*d-1*d*d+1.5*x+1.5*z-0.5*x*z-3.5*boy+u+5*rnormal() . All …
2SLS with linear time trend.Hi all, I am estimating the following model using fixed effects including linear time trends. Cod…
Subscribe to:
Post Comments (Atom)
0 Response to Form deciles with no 0 observations
Post a Comment