<?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: Need help in calculating stratified p-value in my pgm in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Need-help-in-calculating-stratified-p-value-in-my-pgm/m-p/862909#M340859</link>
    <description>&lt;BR /&gt;&lt;BR /&gt;/*If it is high dimension contingency table ,I think you need calculated CMH statistic*/&lt;BR /&gt;proc freq data = one;&lt;BR /&gt;  table age*ss*ph*trt*res/ alpha = 0.05 cmh  ;&lt;BR /&gt;run ;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;And better post it at Statistical Forum :&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/Statistical-Procedures/bd-p/statistical_procedures" target="_blank"&gt;https://communities.sas.com/t5/Statistical-Procedures/bd-p/statistical_procedures&lt;/A&gt;</description>
    <pubDate>Wed, 08 Mar 2023 11:49:06 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2023-03-08T11:49:06Z</dc:date>
    <item>
      <title>Need help in calculating stratified p-value in my pgm</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-help-in-calculating-stratified-p-value-in-my-pgm/m-p/862870#M340834</link>
      <description>&lt;P&gt;Dear&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please suggest me in my pgm how to calculate stratified p_value. The stratification factors are (age ss ph). Thank you&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data one;
input trt res$ age ss ph $;
datalines;
1 cr 55 1 Y
1 cr 53 1 N
1 cri 52 1 Y
1 cri 58 1 N
1 cri 50 2 N
1 cr 53 2 N
1 cri 52 2 Y
1 cri 58 2 N
2 cri 56 2 Y
2 cri 51 2 N
2 cr 50 2 Y
2 cr 56 2 N
;

  proc freq data = one;
                                          table age*ss*ph*trt*res/ alpha = 0.05 chisq pdiff cl nocol nopercent ;
                                          exact chisq / alpha = 0.05 ;
                                          ods output chisq = exact (where = (upcase(statistic) = 'CHI-SQUARE')) ;
                                          output out = pval(rename = (p_pchi = pval)) pchi ;
                                  run ;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 08 Mar 2023 06:39:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-help-in-calculating-stratified-p-value-in-my-pgm/m-p/862870#M340834</guid>
      <dc:creator>knveraraju91</dc:creator>
      <dc:date>2023-03-08T06:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in calculating stratified p-value in my pgm</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-help-in-calculating-stratified-p-value-in-my-pgm/m-p/862909#M340859</link>
      <description>&lt;BR /&gt;&lt;BR /&gt;/*If it is high dimension contingency table ,I think you need calculated CMH statistic*/&lt;BR /&gt;proc freq data = one;&lt;BR /&gt;  table age*ss*ph*trt*res/ alpha = 0.05 cmh  ;&lt;BR /&gt;run ;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;And better post it at Statistical Forum :&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/Statistical-Procedures/bd-p/statistical_procedures" target="_blank"&gt;https://communities.sas.com/t5/Statistical-Procedures/bd-p/statistical_procedures&lt;/A&gt;</description>
      <pubDate>Wed, 08 Mar 2023 11:49:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-help-in-calculating-stratified-p-value-in-my-pgm/m-p/862909#M340859</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-03-08T11:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in calculating stratified p-value in my pgm</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-help-in-calculating-stratified-p-value-in-my-pgm/m-p/863029#M340918</link>
      <description>&lt;P&gt;Are you requesting stratification by Age (only) SS (only) and PH (only) for the TRT*RES? If so perhaps&lt;/P&gt;
&lt;PRE&gt;proc freq data = one;
   table (age ss ph)*trt*res/ alpha = 0.05 chisq pdiff cl nocol nopercent ;
   exact chisq / alpha = 0.05 ;
   ods output chisq = exact (where = (upcase(statistic) = 'CHI-SQUARE')) ;
   output out = pval(rename = (p_pchi = pval)) pchi ;
run ;&lt;/PRE&gt;
&lt;P&gt;You can group variables by role in Proc Freq table statements with ( )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2023 16:25:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-help-in-calculating-stratified-p-value-in-my-pgm/m-p/863029#M340918</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-03-08T16:25:06Z</dc:date>
    </item>
  </channel>
</rss>

