<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic how to compare significance (p-value) for diagnostic accuracy (from 2x2 table) over time? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/how-to-compare-significance-p-value-for-diagnostic-accuracy-from/m-p/298984#M60368</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I am having issues with finding a right test for comparing accuracy trends over time. Is Cochran-Armitage Trend test is a right choice? I have a 2x2 table comparing test results with gold standard at different time points. I plotted the accuracy trends over time on a graph, but I need to know if there is a significant trend. My data is not on a excel sheet or on SAS. I had to manually calculate accuracy for each time point and then enter them on a excel sheet to generate graphs. In the 2x2 table, If I have empty cells, I added 0.5 to each cell and then calculated accuracy. Any advise is appreciated for calculating and comparing accuracy significance across time. I am attaching the&amp;nbsp; trend grap on here. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My questions are:&lt;/P&gt;
&lt;P&gt;1. How to enter data in SAS from a manual 2x2 table, especially when I have 2x2 table data at 4 different time points and I have to do accuracy calculations for 6 different conditions?&lt;/P&gt;
&lt;P&gt;2. How to calcualte accuracy using SAS (and how to adjust missing cells)?&lt;/P&gt;
&lt;P&gt;3. How to compare accuracy trends (significance, p-value) across 4 different time points?&lt;/P&gt;
&lt;P&gt;4. My sample size is low as it is a piolt study involving 18 students.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for the help,&lt;/P&gt;
&lt;P&gt;Sat&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/4939iAB4B578DF11183A6/image-size/original?v=v2&amp;amp;px=-1" alt="Fig 1.jpeg" title="Fig 1.jpeg" border="0" /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2016 16:53:06 GMT</pubDate>
    <dc:creator>smunigala</dc:creator>
    <dc:date>2016-09-16T16:53:06Z</dc:date>
    <item>
      <title>how to compare significance (p-value) for diagnostic accuracy (from 2x2 table) over time?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-compare-significance-p-value-for-diagnostic-accuracy-from/m-p/298984#M60368</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I am having issues with finding a right test for comparing accuracy trends over time. Is Cochran-Armitage Trend test is a right choice? I have a 2x2 table comparing test results with gold standard at different time points. I plotted the accuracy trends over time on a graph, but I need to know if there is a significant trend. My data is not on a excel sheet or on SAS. I had to manually calculate accuracy for each time point and then enter them on a excel sheet to generate graphs. In the 2x2 table, If I have empty cells, I added 0.5 to each cell and then calculated accuracy. Any advise is appreciated for calculating and comparing accuracy significance across time. I am attaching the&amp;nbsp; trend grap on here. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My questions are:&lt;/P&gt;
&lt;P&gt;1. How to enter data in SAS from a manual 2x2 table, especially when I have 2x2 table data at 4 different time points and I have to do accuracy calculations for 6 different conditions?&lt;/P&gt;
&lt;P&gt;2. How to calcualte accuracy using SAS (and how to adjust missing cells)?&lt;/P&gt;
&lt;P&gt;3. How to compare accuracy trends (significance, p-value) across 4 different time points?&lt;/P&gt;
&lt;P&gt;4. My sample size is low as it is a piolt study involving 18 students.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for the help,&lt;/P&gt;
&lt;P&gt;Sat&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/4939iAB4B578DF11183A6/image-size/original?v=v2&amp;amp;px=-1" alt="Fig 1.jpeg" title="Fig 1.jpeg" border="0" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2016 16:53:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-compare-significance-p-value-for-diagnostic-accuracy-from/m-p/298984#M60368</guid>
      <dc:creator>smunigala</dc:creator>
      <dc:date>2016-09-16T16:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: how to compare significance (p-value) for diagnostic accuracy (from 2x2 table) over time?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-compare-significance-p-value-for-diagnostic-accuracy-from/m-p/299004#M60374</link>
      <description>&lt;P&gt;Can you show us what the 'gold standard' data you are using for comparison looks like?&lt;/P&gt;
&lt;P&gt;And describe the manual calculations you did?.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In a generic sense your data need would likely be&amp;nbsp;4 data columns: the time point value, an idicator to show which column,which row and a value.&lt;/P&gt;
&lt;P&gt;Suppose the 2X2 looks something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Col1&amp;nbsp;&amp;nbsp; col&lt;/P&gt;
&lt;P&gt;row1&amp;nbsp;&amp;nbsp; 10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 15&lt;/P&gt;
&lt;P&gt;row2&amp;nbsp;&amp;nbsp; 17&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 33&lt;/P&gt;
&lt;P&gt;Then the data would look like&lt;BR /&gt;Time&amp;nbsp;&amp;nbsp; Row&amp;nbsp;&amp;nbsp; Col&amp;nbsp; Value&lt;/P&gt;
&lt;P&gt;10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&lt;/P&gt;
&lt;P&gt;10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 17&lt;/P&gt;
&lt;P&gt;10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 15&lt;/P&gt;
&lt;P&gt;10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 33&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to have multple topics then add a topic or condition variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The actual order would typically not be import as Proc Sort can fix if needed.&lt;/P&gt;
&lt;P&gt;To get as SAS you could enter into the editor as:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
   input Time   Row   Col  Value;
datalines;
10        1        1     10
10        2        1      17
10        1        2      15
10         2       2       33
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you are careful, use Excel to enter the data as above, save as a CSV and use proc import to read into a SAS data set.&lt;/P&gt;
&lt;P&gt;It is possible to direct entry in SAS but&amp;nbsp; is often cumbersome.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Suppose your Col1 and Col2 represent Male Female.&lt;/P&gt;
&lt;P&gt;Then we ineffect are saying that a value of 1 for column indicates Male and 2 indicates Female.&lt;/P&gt;
&lt;P&gt;A format could be used to get pretty text in that case.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may have to describe what you intend by "adjust missing cells". Do you mean to impute a missing value or exclude from analysis.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Trends are often evaluated by significance of the slope of a line, or significance of parameters in a non-linear, regression model. But 4 points may not be very sensitive.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2016 18:23:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-compare-significance-p-value-for-diagnostic-accuracy-from/m-p/299004#M60374</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-09-16T18:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: how to compare significance (p-value) for diagnostic accuracy (from 2x2 table) over time?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-compare-significance-p-value-for-diagnostic-accuracy-from/m-p/299015#M60382</link>
      <description>&lt;P&gt;Hi Ballard,&lt;/P&gt;
&lt;P&gt;Thanks for the reply. I created the excel sheet with the required data. The data is about how trainee fellows report their findings compared to expert (gold standard). So I have these values for several variables (Variable). I need to find accuracy for different time points (baseline, 5, 10, 15, 20- highlighted in RED). I want to know if there is any significant different in accuracy% between different time points (baseline, 5, 10, 15, 20).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also highligthed a set of 4 values, where there were empty cells on 2x2 table (missing counts). I added 0.5 to each cell.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your help!&lt;/P&gt;
&lt;P&gt;Sat&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2016 18:52:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-compare-significance-p-value-for-diagnostic-accuracy-from/m-p/299015#M60382</guid>
      <dc:creator>smunigala</dc:creator>
      <dc:date>2016-09-16T18:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: how to compare significance (p-value) for diagnostic accuracy (from 2x2 table) over time?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-compare-significance-p-value-for-diagnostic-accuracy-from/m-p/299016#M60383</link>
      <description>&lt;P&gt;Accuracy was determined as the ratio of true predictions (sum of true positive and true negative) to all predictions (sum of false and false positives and negatives).&amp;nbsp; (TP+TN)/ (TP+TN+FP+FN). &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2016 18:54:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-compare-significance-p-value-for-diagnostic-accuracy-from/m-p/299016#M60383</guid>
      <dc:creator>smunigala</dc:creator>
      <dc:date>2016-09-16T18:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to compare significance (p-value) for diagnostic accuracy (from 2x2 table) over time?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-compare-significance-p-value-for-diagnostic-accuracy-from/m-p/299053#M60396</link>
      <description>&lt;P&gt;Graphically, you could look at the evolution of agreement statistics over time&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname xl Excel "&amp;amp;sasforum\datasets\Data_2_by_2.xlsx" access=readonly;

proc sql;
create table two as
select coalesce(study, 0) as study, 
    variable, fellow, Gold_standard, 
    int(count) as n
from xl.'Sheet1$'n
order by variable, study;
quit;

libname xl clear;

proc freq data=two;
by variable study;
table fellow*gold_standard / agree;
weight n / zeros;
ods output Kappa=k;
run;

proc transpose data=k out=ktable;
by variable study;
var nValue1;
id name1;
run;

proc sgplot data=ktable;
where variable ne "Ach_Obs";
BAND x=study lower=L_KAPPA upper=U_KAPPA / group=variable transparency=0.5;
series x=study y=_KAPPA_ / markers lineattrs=(pattern=solid thickness=2) group=variable;
xaxis type=discrete;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 16 Sep 2016 22:12:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-compare-significance-p-value-for-diagnostic-accuracy-from/m-p/299053#M60396</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-09-16T22:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to compare significance (p-value) for diagnostic accuracy (from 2x2 table) over time?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-compare-significance-p-value-for-diagnostic-accuracy-from/m-p/299098#M60412</link>
      <description>&lt;PRE&gt;
So it is repeated measure ? and it is longitude data ?
Maybe you should post it at Stat forum,Steve could give you proc glimmix code.



proc import datafile='/folders/myfolders/data_2_by_2.xlsx' out=have dbms=xlsx replace;
run;
data want;
 set have;
 if variable in ('Hiatal Hernia' 'Motor Pattern') and
    study in ('Baseline' '5' '10' '15' '20');
run;

proc gee data = want;
class study variable fellow gold_standard;
model Count =variable study/ dist=poisson link=log  ;
lsmeans study/ ilink cl diff;
repeated subject = variable*fellow*gold_standard / within = study type=unstr covb corrw;
run;


&lt;/PRE&gt;</description>
      <pubDate>Sat, 17 Sep 2016 09:19:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-compare-significance-p-value-for-diagnostic-accuracy-from/m-p/299098#M60412</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-09-17T09:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to compare significance (p-value) for diagnostic accuracy (from 2x2 table) over time?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-compare-significance-p-value-for-diagnostic-accuracy-from/m-p/299320#M60436</link>
      <description>&lt;P&gt;The PROC GEE code from&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp﻿&lt;/a&gt;&amp;nbsp;should provide you everything you need to get started. &amp;nbsp;I might have included some other factors in the model statement, but I am pressed for time this morning to really think clearly about it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve Denham&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2016 15:27:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-compare-significance-p-value-for-diagnostic-accuracy-from/m-p/299320#M60436</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2016-09-19T15:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to compare significance (p-value) for diagnostic accuracy (from 2x2 table) over time?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-compare-significance-p-value-for-diagnostic-accuracy-from/m-p/299338#M60439</link>
      <description>&lt;P&gt;Steve, I received a notification that you have replied to the question I posed:&amp;nbsp;&lt;/P&gt;&lt;P&gt;"I am interested in analyzing the generalized impulse response functions with Proc VARMAX. However, I am not sure how to program this with the Proc&amp;nbsp;VAXMAX since none of the examples outlined in&amp;nbsp;SAS indicated 'generalized'. I was wondering if someone would kindly help me with the program". However, I could not find your response to my question. Could you let me know where you placed your response. Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mahmud&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2016 16:50:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-compare-significance-p-value-for-diagnostic-accuracy-from/m-p/299338#M60439</guid>
      <dc:creator>mmansaray</dc:creator>
      <dc:date>2016-09-19T16:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to compare significance (p-value) for diagnostic accuracy (from 2x2 table) over time?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-compare-significance-p-value-for-diagnostic-accuracy-from/m-p/299633#M60460</link>
      <description>&lt;P&gt;Mahmud,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since PROC VARMAX is in SAS/ETS, I moved the question to the&amp;nbsp;Forecasting and Econometrics forum, where it should attract a more specialized audience. &amp;nbsp;i didn't have any specific answer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve Denham&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2016 18:56:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-compare-significance-p-value-for-diagnostic-accuracy-from/m-p/299633#M60460</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2016-09-20T18:56:01Z</dc:date>
    </item>
  </channel>
</rss>

