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
How to zipfile/unzipfile an excel file with passwordhello, I want to zipfile/unzipfile an excel file with password compression. Now I have two ways of e…
Normality test and intrpretation of swilk shapiro testDear All Can help me confusions i had while checking the noramlity of data.I have checked with histo…
one sided interpretation and table notationHi, Possibly quite a simple question: Let's assume I want to compare the GPA of three groups using…
Cleaning Messy Address DataHello, I have data on addresses where I would like to create a new variable that includes only the s…
error:*convergence not achievedHello everyone I am getting the error: convergence not achieved and I don't know why. I am using …
Subscribe to:
Post Comments (Atom)
0 Response to rank problem
Post a Comment