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
Using cmp command for simultaneous equation model with an ordered endogenous variableHello everyone, I’m running a simultaneous equation model with 2 equations as following : Y1 = f(Y…
Data Envelopment Analysis to generate TFP with macro level panel dataHi, I'm relatively new to stata and struggling with the dea (data envelopment analysis) command. My …
why i am not getting Hansen statistics?. xtabond2 fg_ta l.fg_ta size age ia_w debt_ratio_w TobinQ fac roa cashratio i.sector_1, gmm(fg_ta) …
asclogit or clogit with treatment and control?Dear all, I have conducted a labelled choice experiment with labels=engine type (gasoline, EV, HEV)…
Pre post analysis with ANOVAGood morning, I was asked to perform a pre-post analysis with ANOVA in order to see the effect of th…
Subscribe to:
Post Comments (Atom)
0 Response to Form deciles with no 0 observations
Post a Comment