Question reads:
Two methods of determining carotid stenosis (narrowing of the carotid artery which supplies blood to the brain) are being compared. Method one is an invasive method that is believe to be very accurate. Method two is a noninvasive (MRI) method. One hundred patient were evaluated by these two methods with these results:
Method One Method Two Count
Occuled Occuled 15
Occuled Non-occuled 8
Non-occuled Occuled 10
Non-occuled Non-occuled 67
Sorry I don't understand your question.
You have posted the sample data but did not post what you are expecting the output as, the two methods data along with the count is there with this data want you want to do is not clear to me
I apologize it says compute coefficient Kappa.
@michelle05 wrote:
Question reads:
Two methods of determining carotid stenosis (narrowing of the carotid artery which supplies blood to the brain) are being compared. Method one is an invasive method that is believe to be very accurate. Method two is a noninvasive (MRI) method. One hundred patient were evaluated by these two methods with these results:
Method One Method Two Count
Occuled Occuled 15
Occuled Non-occuled 8
Non-occuled Occuled 10
Non-occuled Non-occuled 67
And what is the question here?
I'm sorry it says Compute Coefficient Kappa.
It is a 2 by 2 table . Use Proc Freq to get the estimate of Kappa Coefficient.
data have;
input carotid1 :$11. carotid2 :$11. count;
datalines;
Occuled Occuled 15
Occuled Non_Occuled 8
Non_Occuled Occuled 10
Non_Occuled Non_Occuled 67
;
run;
proc freq data=have;
table Carotid1*carotid2;
exact mcnem;
weight count;
run;
I did something similar like this earlier and I kept getting 8 errors. When I entered this code in, I got 7 errors. I am stuck.
Show your Log.
I am getting the output as:
The FREQ Procedure Frequency Percent Row Pct Col Pct Table of carotid1 by carotid2 carotid1 carotid2 Non_Occuled Occuled Total Non_Occuled 67 67.00 87.01 89.33 10 10.00 12.99 40.00 77 77.00 Occuled 8 8.00 34.78 10.67 15 15.00 65.22 60.00 23 23.00 Total 75 75.00 25 25.00 100 100.00 Statistics for Table of carotid1 by carotid2 McNemar's Test Chi-Square DF Pr > ChiSq Exact Pr >= ChiSq 0.2222 1 0.6374 0.8145 Simple Kappa Coefficient Estimate Standard Error 95% Confidence Limits 0.5068 0.1008 0.3092 0.7045 Sample Size = 100
Thank you! It was me! I have the output this time. Sorry! Again, thank you for your time and your help.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.