hello teacher
I have a question need help, I want to simulate the SAS code to separate "size" to two groups per year (yymm is time variable)
///////(SAS code)///////
PROC RANK DATA=stock GROUPS=2 OUT=rout1;
VAR size;
RANKS sr;
BY yymm;
RUN;
////////////////////////////////////
My Stata code
bys yymm: xtile sr=size,np(2)
Stata reply: (xtile may not be combined with by )
so I change code
xtile sr=size,nq(2) by(yymm)
Stata reply: (option by() not allowed )
so.. what can I do? , please help
Related Posts with rank problem
average weighted scoresDear Statalists, I have a survey data that contains categorical variables in the Likert scale (typi…
how to suppress the interval from -1 to 1 of x-axisHere is the code: Code: * Example generated by -dataex-. To install: ssc install dataex clear inpu…
Twoway spline with multiple variablesHi All, I am currently using a twoway connected graph, with multiple variables as follows: Code:…
Multinomial Logit ModelingGreetings- I am looking for some advice on a multinomial logit model with marginal effects. The mod…
how to suppress display of the interval from -1 to 1 of x-axisHere is the code: Code: * Example generated by -dataex-. To install: ssc install dataex clear inpu…
Subscribe to:
Post Comments (Atom)
0 Response to rank problem
Post a Comment