<?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 p-value for CMH in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/p-value-for-CMH/m-p/810234#M39876</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there a SAS procedure to calculate p-value for Mantel-Haenszel Stratum Weighted Method for risk difference in stratified samples? It provided&amp;nbsp;the CI but I can't find p-value for this test.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HappySASUE_0-1651080129961.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/70918i7A01FE392D16FC74/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HappySASUE_0-1651080129961.png" alt="HappySASUE_0-1651080129961.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SAS code I used is&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF9900"&gt;ods output CommonPdiff=CommonPdiff&amp;nbsp;&amp;nbsp; ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF9900"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;freq&lt;/STRONG&gt; data&amp;nbsp; = resp order=data;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF9900"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tables stratum1*stratum2*trt01pn*resp/riskdiff(common)&amp;nbsp; ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF9900"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't find option from&lt;/P&gt;&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_freq_details.htm" target="_blank" rel="noopener"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_freq_details.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;</description>
    <pubDate>Wed, 27 Apr 2022 17:22:26 GMT</pubDate>
    <dc:creator>HappySASUE</dc:creator>
    <dc:date>2022-04-27T17:22:26Z</dc:date>
    <item>
      <title>p-value for CMH</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/p-value-for-CMH/m-p/810234#M39876</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there a SAS procedure to calculate p-value for Mantel-Haenszel Stratum Weighted Method for risk difference in stratified samples? It provided&amp;nbsp;the CI but I can't find p-value for this test.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HappySASUE_0-1651080129961.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/70918i7A01FE392D16FC74/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HappySASUE_0-1651080129961.png" alt="HappySASUE_0-1651080129961.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SAS code I used is&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF9900"&gt;ods output CommonPdiff=CommonPdiff&amp;nbsp;&amp;nbsp; ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF9900"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;freq&lt;/STRONG&gt; data&amp;nbsp; = resp order=data;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF9900"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tables stratum1*stratum2*trt01pn*resp/riskdiff(common)&amp;nbsp; ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF9900"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't find option from&lt;/P&gt;&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_freq_details.htm" target="_blank" rel="noopener"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_freq_details.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 17:22:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/p-value-for-CMH/m-p/810234#M39876</guid>
      <dc:creator>HappySASUE</dc:creator>
      <dc:date>2022-04-27T17:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: p-value for CMH</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/p-value-for-CMH/m-p/810271#M39886</link>
      <description>&lt;P&gt;You can do this by taking a model-based approach. Fit a logistic model that includes your treatment variable and your stratifying variables and include an LSMEANS statement with the DIFF option to compare the treatments. For example, assuming that your binary response variable is Y with values 0 and 1, where 1 represents the event of interest:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;  proc logistic;
         class trt strat1 strat2 / param=glm;
         model y(event="1") = trt strat1 strat2;
         lsmeans trt / ilink diff cl;
         run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You might also want to look at the discussion in &lt;A href="http://support.sas.com/kb/37228" target="_self"&gt;this note&lt;/A&gt; which is more important when you want to estimate as well as test the risk difference. That note shows how it can be estimated as either the marginal effect of treatment or as a difference of LS-means.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 20:19:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/p-value-for-CMH/m-p/810271#M39886</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2022-04-27T20:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: p-value for CMH</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/p-value-for-CMH/m-p/810348#M39898</link>
      <description>Try add CMH  option in TABLE.</description>
      <pubDate>Thu, 28 Apr 2022 13:17:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/p-value-for-CMH/m-p/810348#M39898</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-04-28T13:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: p-value for CMH</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/p-value-for-CMH/m-p/810618#M39916</link>
      <description>&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are 3 p-values, which one I should use?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HappySASUE_0-1651237176848.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/70982i2E39E612E9769EFA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HappySASUE_0-1651237176848.png" alt="HappySASUE_0-1651237176848.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 13:00:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/p-value-for-CMH/m-p/810618#M39916</guid>
      <dc:creator>HappySASUE</dc:creator>
      <dc:date>2022-04-29T13:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: p-value for CMH</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/p-value-for-CMH/m-p/810638#M39917</link>
      <description>This three P value correspond to three Hypothesis . &lt;BR /&gt;It look like trt01pn and resp have correlation/association after adjusting MUTCAT and HGBCAT .&lt;BR /&gt;But these three Hypothesis has nothing to do with RISK . the second statistic is saying the two treat(trt01pn) has different response(resp) . But is more like ANOVA not like RISK .&lt;BR /&gt;&lt;BR /&gt;Or could you also try RELRISK option ?</description>
      <pubDate>Fri, 29 Apr 2022 13:39:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/p-value-for-CMH/m-p/810638#M39917</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-04-29T13:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: p-value for CMH</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/p-value-for-CMH/m-p/810693#M39921</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi Ksharp,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your patience and help. I added the option, but still no p-value. It is very strange no p-value but CI for MH test.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HappySASUE_0-1651248512218.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/70988i12C2D54E6D693171/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HappySASUE_0-1651248512218.png" alt="HappySASUE_0-1651248512218.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods output CommonPdiff=CommonPdiff CMH=cmhpval ;&lt;BR /&gt;proc freq data = resp order=data;&lt;BR /&gt;tables mutcat*hgbcat*trt01pn*resp/riskdiff(common) cmh RELRISK ;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 16:11:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/p-value-for-CMH/m-p/810693#M39921</guid>
      <dc:creator>HappySASUE</dc:creator>
      <dc:date>2022-04-29T16:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: p-value for CMH</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/p-value-for-CMH/m-p/810697#M39922</link>
      <description>If you don't want to take the model-based approach I mentioned earlier, then you can use the COMMONRISKDIFF(TEST) option in PROC FREQ. If you want to test the risk difference, then you don't want the RELRISK option which gives the ratio of risks, not the difference.</description>
      <pubDate>Fri, 29 Apr 2022 16:47:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/p-value-for-CMH/m-p/810697#M39922</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2022-04-29T16:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: p-value for CMH</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/p-value-for-CMH/m-p/810701#M39923</link>
      <description>&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does proc logistic also create the risk difference p value?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 17:13:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/p-value-for-CMH/m-p/810701#M39923</guid>
      <dc:creator>HappySASUE</dc:creator>
      <dc:date>2022-04-29T17:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: p-value for CMH</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/p-value-for-CMH/m-p/810702#M39924</link>
      <description>Yes, the DIFF option in the LSMEANS statement gives a p-value for the difference. The downside with the model-based approach is that you might encounter problems fitting the model particularly if the data are made sparse by the model specification.</description>
      <pubDate>Fri, 29 Apr 2022 17:19:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/p-value-for-CMH/m-p/810702#M39924</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2022-04-29T17:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: p-value for CMH</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/p-value-for-CMH/m-p/810782#M39925</link>
      <description>Or you could check CI ?&lt;BR /&gt;For RISKDIFF ,check if CI contains 0 .&lt;BR /&gt;For RELRISK ,check if CI contains 1 .</description>
      <pubDate>Sat, 30 Apr 2022 10:18:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/p-value-for-CMH/m-p/810782#M39925</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-04-30T10:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: p-value for CMH</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/p-value-for-CMH/m-p/811053#M39954</link>
      <description>&lt;P&gt;I had already used logistic regression, need this more sensitivity analysis.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2022 12:44:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/p-value-for-CMH/m-p/811053#M39954</guid>
      <dc:creator>HappySASUE</dc:creator>
      <dc:date>2022-05-02T12:44:57Z</dc:date>
    </item>
  </channel>
</rss>

