proc npar1way data=lb3 wilcoxon ;
where cohort in ('Cohort 1','Cohort 3') and visitn>0 and chg>. ;
&tst. where also stratum='HV+CKD' and testcd='FE' and visitn=12 ;
var chg ;
exact wilcoxon ;
class cohort ;
by stratum testcd test visitn ;
output out=wrstst13(keep=stratum testcd test visitn xp2_wil) wilcoxon ;
run ;
In the above code in the output statement it is written to keep variable xp2_wil , but there is no xp2_wil variable present in lb3 , so how come xp2_wil variable is getting created.?
Since virtually every question we get in this forum could be described as "How the code is functioning", you need to provide more specific subject lines, so that people who are familiar with PROC NPAR1WAY might be able to help, while those people who have never heard of PROC NPAR1WAY can skip reading your question if desired. By doing this, you make the forums more useful to everyone. We appreciate the help.
Please change the title to "Unexpected output from PROC NPAR1WAY".
XP2_WIL is an expected output from PROC NPAR1WAY when a Wilcoxon test is requested, see https://documentation.sas.com/?docsetId=statug&docsetTarget=statug_npar1way_details32.htm&docsetVers...
Please go back and provide a meaningful subject line to your post.
Maxim 1: Read the Documentation.
In the Details for the NPAR1WAY Procedure, section Contents of the Output Dataset, is a table showing all variables created by the procedure.
Since virtually every question we get in this forum could be described as "How the code is functioning", you need to provide more specific subject lines, so that people who are familiar with PROC NPAR1WAY might be able to help, while those people who have never heard of PROC NPAR1WAY can skip reading your question if desired. By doing this, you make the forums more useful to everyone. We appreciate the help.
Please change the title to "Unexpected output from PROC NPAR1WAY".
XP2_WIL is an expected output from PROC NPAR1WAY when a Wilcoxon test is requested, see https://documentation.sas.com/?docsetId=statug&docsetTarget=statug_npar1way_details32.htm&docsetVers...
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.
Find more tutorials on the SAS Users YouTube channel.