Dear forum members-
I have panel data and wanted to create tercile of wlscore for each country by rounds.
Example data is below. I am trying with
syntax but it does not allow by option.
Any help is appreciated
I have panel data and wanted to create tercile of wlscore for each country by rounds.
Example data is below. I am trying with
Code:
bys country rounds: xtile wanted = wlscore, nq(3)
Any help is appreciated
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input str2 country byte(rounds id) float wlscore "EP" 2 14 .25 "EP" 2 13 .55 "EP" 2 12 .34 "EP" 2 11 .95 "EP" 2 10 .86 "EP" 2 9 .73 "EP" 2 8 .94 "EP" 2 7 .63 "EP" 2 6 .36 "EP" 2 5 .57 "EP" 2 4 .55 "EP" 2 3 .71 "EP" 2 2 .81 "EP" 2 1 .95 "EP" 1 14 .72 "EP" 1 13 .2 "EP" 1 12 .94 "EP" 1 11 .73 "EP" 1 10 .64 "EP" 1 9 .18 "EP" 1 8 .47 "EP" 1 7 .51 "EP" 1 6 .4 "EP" 1 5 .64 "EP" 1 4 .17 "EP" 1 3 .61 "EP" 1 2 .81 "EP" 1 1 .58 "IN" 2 14 .19 "IN" 2 13 .59 "IN" 2 12 .58 "IN" 2 11 .36 "IN" 2 10 .13 "IN" 2 9 .77 "IN" 2 8 .78 "IN" 2 7 .18 "IN" 2 6 .9 "IN" 2 5 .33 "IN" 2 4 .89 "IN" 2 3 .13 "IN" 2 2 .98 "IN" 2 1 .77 "IN" 1 14 .61 "IN" 1 13 .63 "IN" 1 12 .31 "IN" 1 11 .05 "IN" 1 10 .1 "IN" 1 9 .06 "IN" 1 8 .14 "IN" 1 7 .58 "IN" 1 6 .7 "IN" 1 5 .07 "IN" 1 4 .14 "IN" 1 3 .66 "IN" 1 2 .08 "IN" 1 1 .92 end
Comment