<?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 Re: What is the best statistical test of significant difference in this case ? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/What-is-the-best-statistical-test-of-significant-difference-in/m-p/731263#M35467</link>
    <description>&lt;P&gt;It's up to you,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may consider Study as a fixed effect:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
infile datalines dlm=":,";
length procedure $16 nbStr outStr $64;
input study $ procedure $ nbStr $ outStr $;
nb = input(scan(nbStr,1), best.);
fav = input(scan(outStr,3," "), percent7.);
nbFav = round(fav * nb);
datalines;
study1: Endovascular , 200 patients , favorable outcome  85%
study2: Endovascular , 400 patients , favorable outcome 87%
study3: surgical , 250 patients, favorable outcome 92%
study4: surgical, 300 patients, favorable outcome 82%
study5: surgical, 130 patients, favorable outcome 81%
;

proc logistic data=have;
class procedure study / param=glm;
model nbFav/nb = procedure study(procedure);
oddsratio procedure;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PGStats_0-1617557894652.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/56905i60C55BDE058A372C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PGStats_0-1617557894652.png" alt="PGStats_0-1617557894652.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;.... or as a random effect:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glimmix data=have;
class procedure study;
model nbFav/nb = procedure / dist=binomial;
random study(procedure);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PGStats_1-1617558033052.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/56906i709CF71107764719/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PGStats_1-1617558033052.png" alt="PGStats_1-1617558033052.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Either way, the procedure effect is not significant.&lt;/P&gt;</description>
    <pubDate>Sun, 04 Apr 2021 17:42:24 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2021-04-04T17:42:24Z</dc:date>
    <item>
      <title>What is the best statistical test of significant difference in this case ?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/What-is-the-best-statistical-test-of-significant-difference-in/m-p/731188#M35459</link>
      <description>&lt;DIV&gt;I am comparing 2 procedures Endovascular vs Surgical , outcome variable is the percentage of favorable outcome&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;from different publications :&lt;/DIV&gt;&lt;DIV&gt;study1: Endovascular , 200 patients , favorable outcome&amp;nbsp; 85%&lt;/DIV&gt;&lt;DIV&gt;study2 : Endovascular , 400 patients , favorable outcome 87%&lt;/DIV&gt;&lt;DIV&gt;study3: surgical , 250 patients, favorable outcome 92%&lt;/DIV&gt;&lt;DIV&gt;study4: surgical, 300 patients, favorable outcome 82%&lt;/DIV&gt;&lt;DIV&gt;study5: surgical, 130 patients, favorable outcome 81%&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Based on this,&amp;nbsp; the average favorable outcome was&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#ff0000"&gt;&lt;STRONG&gt;86.5%&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;for the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Endovascular&lt;/STRONG&gt;&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;group&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;FONT color="#ff0000"&gt;600 patients&lt;/FONT&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(considering the weight of each study), and was&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#0000ff"&gt;&lt;STRONG&gt;85.5%&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;for the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Surgical&lt;/STRONG&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;group&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;FONT color="#0000ff"&gt;680 patients&lt;/FONT&gt;.&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;How can I know this difference is significant ?&lt;/DIV&gt;&lt;DIV&gt;What statistical test would be the best here ?&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 04 Apr 2021 05:06:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/What-is-the-best-statistical-test-of-significant-difference-in/m-p/731188#M35459</guid>
      <dc:creator>Khalid2015</dc:creator>
      <dc:date>2021-04-04T05:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best statistical test of significant difference in this case ?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/What-is-the-best-statistical-test-of-significant-difference-in/m-p/731195#M35460</link>
      <description>&lt;P&gt;What rules are you using to define "best statistical test"?&lt;/P&gt;
&lt;P&gt;Sensitivity to small changes?&lt;/P&gt;
&lt;P&gt;Robustness to odd distributions of data or no assumptions about underlying distributions?&lt;/P&gt;
&lt;P&gt;Short to code?&lt;/P&gt;
&lt;P&gt;Something else?&lt;/P&gt;</description>
      <pubDate>Sun, 04 Apr 2021 05:58:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/What-is-the-best-statistical-test-of-significant-difference-in/m-p/731195#M35460</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-04-04T05:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best statistical test of significant difference in this case ?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/What-is-the-best-statistical-test-of-significant-difference-in/m-p/731252#M35465</link>
      <description>&lt;P&gt;One approach would be to fit a suitable single model to all of the data (1280 observations) that would include your procedure variable as a categorical predictor. The SAS procedure that you use to fit the model will provide a test of your procedure variable which would be a test of their difference on the response.&lt;/P&gt;</description>
      <pubDate>Sun, 04 Apr 2021 15:56:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/What-is-the-best-statistical-test-of-significant-difference-in/m-p/731252#M35465</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2021-04-04T15:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best statistical test of significant difference in this case ?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/What-is-the-best-statistical-test-of-significant-difference-in/m-p/731263#M35467</link>
      <description>&lt;P&gt;It's up to you,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may consider Study as a fixed effect:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
infile datalines dlm=":,";
length procedure $16 nbStr outStr $64;
input study $ procedure $ nbStr $ outStr $;
nb = input(scan(nbStr,1), best.);
fav = input(scan(outStr,3," "), percent7.);
nbFav = round(fav * nb);
datalines;
study1: Endovascular , 200 patients , favorable outcome  85%
study2: Endovascular , 400 patients , favorable outcome 87%
study3: surgical , 250 patients, favorable outcome 92%
study4: surgical, 300 patients, favorable outcome 82%
study5: surgical, 130 patients, favorable outcome 81%
;

proc logistic data=have;
class procedure study / param=glm;
model nbFav/nb = procedure study(procedure);
oddsratio procedure;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PGStats_0-1617557894652.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/56905i60C55BDE058A372C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PGStats_0-1617557894652.png" alt="PGStats_0-1617557894652.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;.... or as a random effect:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glimmix data=have;
class procedure study;
model nbFav/nb = procedure / dist=binomial;
random study(procedure);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PGStats_1-1617558033052.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/56906i709CF71107764719/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PGStats_1-1617558033052.png" alt="PGStats_1-1617558033052.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Either way, the procedure effect is not significant.&lt;/P&gt;</description>
      <pubDate>Sun, 04 Apr 2021 17:42:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/What-is-the-best-statistical-test-of-significant-difference-in/m-p/731263#M35467</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2021-04-04T17:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best statistical test of significant difference in this case ?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/What-is-the-best-statistical-test-of-significant-difference-in/m-p/731303#M35470</link>
      <description>&lt;P&gt;Thanks a lot , this is very helpful. As a SAS beginner , I just do not what does some of the lines in the code mean ?&lt;/P&gt;&lt;P&gt;1- what is meant by this line :&lt;/P&gt;&lt;PRE class="language-sas"&gt;&lt;CODE&gt;length procedure $16 nbStr outStr $64;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;what is 16 and 64 ? what is nbstr and outstr ? what is the length mean ?&lt;/P&gt;&lt;P&gt;2-&amp;nbsp; what is the scan , best. , " " , and percent7. mean ?&amp;nbsp;&lt;/P&gt;&lt;PRE class="language-sas"&gt;&lt;CODE&gt;nb = input(scan(nbStr,1), best.);
fav = input(scan(outStr,3," "), percent7.);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp; Thank you very much&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Apr 2021 02:54:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/What-is-the-best-statistical-test-of-significant-difference-in/m-p/731303#M35470</guid>
      <dc:creator>Khalid2015</dc:creator>
      <dc:date>2021-04-05T02:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best statistical test of significant difference in this case ?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/What-is-the-best-statistical-test-of-significant-difference-in/m-p/731304#M35471</link>
      <description>&lt;P&gt;Sorry , I was wondering if t-test and chi square may not work here , what else would it be ? Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Apr 2021 03:10:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/What-is-the-best-statistical-test-of-significant-difference-in/m-p/731304#M35471</guid>
      <dc:creator>Khalid2015</dc:creator>
      <dc:date>2021-04-05T03:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best statistical test of significant difference in this case ?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/What-is-the-best-statistical-test-of-significant-difference-in/m-p/731306#M35473</link>
      <description>&lt;P&gt;I can not&amp;nbsp; input the 1280 observation , I do not have access to the study themselves. I only have a summary data.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 03:29:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/What-is-the-best-statistical-test-of-significant-difference-in/m-p/731306#M35473</guid>
      <dc:creator>Khalid2015</dc:creator>
      <dc:date>2021-04-07T03:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best statistical test of significant difference in this case ?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/What-is-the-best-statistical-test-of-significant-difference-in/m-p/731386#M35489</link>
      <description>&lt;P&gt;This whole first part is just a fancy way of extracting the data values from the text you provided. You probably already have your data (procedure, study, nb, nbFav) somewhere in a better format. The length statement simply declares character variables (strings) of sufficient length. The values are read as strings, parts of those strings extracted and then converted into numbers. Read about the most popular SAS functions, including SCAN and INPUT, &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=lefunctionsref&amp;amp;docsetTarget=n1b7dkf9vhuqczn16qfd41j6dd54.htm&amp;amp;locale=en" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Apr 2021 15:35:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/What-is-the-best-statistical-test-of-significant-difference-in/m-p/731386#M35489</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2021-04-05T15:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best statistical test of significant difference in this case ?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/What-is-the-best-statistical-test-of-significant-difference-in/m-p/731388#M35490</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/44188"&gt;@Khalid2015&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thanks a lot , this is very helpful. As a SAS beginner , I just do not what does some of the lines in the code mean ?&lt;/P&gt;
&lt;P&gt;1- what is meant by this line :&lt;/P&gt;
&lt;PRE class="language-sas"&gt;&lt;CODE&gt;length procedure $16 nbStr outStr $64;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;what is 16 and 64 ? what is nbstr and outstr ? what is the length mean ?&lt;/P&gt;
&lt;P&gt;2-&amp;nbsp; what is the scan , best. , " " , and percent7. mean ?&amp;nbsp;&lt;/P&gt;
&lt;PRE class="language-sas"&gt;&lt;CODE&gt;nb = input(scan(nbStr,1), best.);
fav = input(scan(outStr,3," "), percent7.);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp; Thank you very much&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Length statements with $ establish the maximum number of letters a character value will hold. nbstr and outstr are just the names of variables. Could have been Fred and Wilma, but nbSTR could be a character variable, often also called "string" for ancient programming reasons, so nbStr could be short for "a string value that holds a number".&lt;/P&gt;
&lt;P&gt;SCAN function pulls "words" from list of values separated by delimiters such as space, comma, period (a few others by default or you can specify). So Scan("this is a list of words",1) would get the first "word" or the value "this".&lt;/P&gt;
&lt;P&gt;The INPUT function is used to read text values using a specified Informat. In this case it is going to use "best" or a default way to convert the first part of the string variable nbstr into the numeric variable NB. Similar with the second only the informat is designed to read values with % as part of the text value.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Apr 2021 15:42:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/What-is-the-best-statistical-test-of-significant-difference-in/m-p/731388#M35490</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-04-05T15:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: What is the best statistical test of significant difference in this case ?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/What-is-the-best-statistical-test-of-significant-difference-in/m-p/731790#M35517</link>
      <description>&lt;P&gt;Ok. A friend suggested doing &lt;STRONG&gt;meta-analysis&lt;/STRONG&gt; in this case , since I do not have the single observation variables for each patient ( I have the summary of the five studies and not the whole data) . What do you guys think . I never did meta-analysis and SAS and I do not know the codes for it . Any suggestion is really appreciated. Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 03:26:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/What-is-the-best-statistical-test-of-significant-difference-in/m-p/731790#M35517</guid>
      <dc:creator>Khalid2015</dc:creator>
      <dc:date>2021-04-07T03:26:51Z</dc:date>
    </item>
  </channel>
</rss>

