Hello,
Is it possible to perform the Paired Wilcoxon test and the McNemar using the Paired variable in the dataset below? Or do I have to transform the data to use proc univariate (diff)?
Thanks
data match; input Id $ case_control $ match_caseid $ paired age gender $ weight ethnic $; datalines; A1 Case A1 1 20 F 56 Balck A2 Control A1 1 23 F 60 Black A3 Control A1 1 22 F 65 Black B1 Case B1 2 30 M 70 Asian B2 Control B1 2 35 M 47 Asian B3 Control B1 2 33 M 75 Unknown C1 Case C1 3 40 M 80 White C2 Control C1 3 38 M 73 White D1 Case D1 4 47 M 50 Other D2 Control D1 4 41 M 58 Other D3 Control D1 4 50 M 49 Unknown D4 Control D1 4 63 M 77 Other run;
How do you expect to use a PAIRED test with THREE values?
Pair very strongly implies 2. And in the case of paired statistics pretty much a requirement.
Perhaps you need to rephrase exactly the meaning of the resulting test instead of requiring a specific test.
Cases were matched with 1 or several controls (match_caseid) and I want to perform Wilcoxon signed rank test and the McNemar using case_control and Paired variables in the dataset below? It is possible?
Thanks
data match; input Id $ case_control $ match_caseid $ paired age gender $ weight ethnic $ ; datalines; A1 Case . 1 20 F 56 Balck A2 Control A1 1 23 F 60 Black A3 Control A1 1 22 F 65 Black B1 Case . 2 30 M 70 Asian B2 Control B1 2 35 M 47 Asian B3 Control B1 2 33 M 75 Unknown C1 Case . 3 40 M 80 White C2 Control C1 3 38 M 73 White D1 Case . 4 47 M 50 Other D2 Control D1 4 41 M 58 Other D3 Control D1 4 50 F 49 Unknown D4 Control D1 4 63 M 77 Other run;
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.
Find more tutorials on the SAS Users YouTube channel.