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
Kernel-based Propensity Score Matching diff-in-diffHi Stata Users, Below is an example of my data set. I want to perform the Kernel-based Propensity S…
Checking Model Fit in Part 1 and 2 of TWOPMHello, Does anyone know how to test model fit when using the twopm command? I am using twopm to exa…
Inform the user of Python script progress when called from Stata do-file.Hello, Apologies if this has been answered elsewhere - I've searched (here and in other places), bu…
About "Teradial" codeHello, I am working on a study which is about airlines' efficiency by using "Teradial" STATA ado fi…
Interpretation of multilevel poisson modelHello stata folks, I am learning about multilevel poisson model and I have some questions on the int…
Subscribe to:
Post Comments (Atom)
0 Response to rank problem
Post a Comment