<?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: PROC MIXED pvalue calculation UPPER option in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIXED-pvalue-calculation-UPPER-option/m-p/663967#M31647</link>
    <description>&lt;P&gt;I believe your interpretation is correct.&amp;nbsp; The directionality of one-tailed tests leads to the definition of the p value.&amp;nbsp; Let's suppose the alternative is that d&amp;gt;0, but you obtain a negative estimate for d.&amp;nbsp; The p value is then everything under the pdf curve to the right of d.&amp;nbsp; That is, 0.5 + (1 - the amount to the LEFT of the value of d).&amp;nbsp; A similar case comes out of an alternative hypothesis of d&amp;lt;0, and you obtain a positive estimate for d.&amp;nbsp; A pictorial representation of this should make this clearer, so just draw a Gaussian curve centered on 0, and put in some values for d, and then look at the part under the curve.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
    <pubDate>Mon, 22 Jun 2020 12:27:47 GMT</pubDate>
    <dc:creator>SteveDenham</dc:creator>
    <dc:date>2020-06-22T12:27:47Z</dc:date>
    <item>
      <title>PROC MIXED pvalue calculation UPPER option</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIXED-pvalue-calculation-UPPER-option/m-p/663941#M31642</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would need help to understand how the pvalue is computed when using UPPER option in a PROC MIXED.&lt;/P&gt;&lt;P&gt;Here is my mixed procedure:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt; &lt;STRONG&gt;MIXED&lt;/STRONG&gt; data=dummyall plots=residualpanel method=reml;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CLASS&amp;nbsp;&amp;nbsp; diet timec id timeplan;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MODEL pulse= diet timec diet*timec pulsebase/ ddfm=kr;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; REPEATED timec / type=sp(pow)(timeplan) subject=id;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LSMEANS diet*timec/diff=all cl;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LSMESTIMATE diet*timec 'Change at Timec=2 - Diet 1 vs diet 2'&amp;nbsp; &lt;STRONG&gt;1&lt;/STRONG&gt; &lt;STRONG&gt;0&lt;/STRONG&gt; &lt;STRONG&gt;0&lt;/STRONG&gt; -&lt;STRONG&gt;1&lt;/STRONG&gt; &lt;STRONG&gt;0&lt;/STRONG&gt; &lt;STRONG&gt;0&lt;/STRONG&gt; / upper alpha=&lt;STRONG&gt;0.05&lt;/STRONG&gt; cl ;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RUN&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the impression the pvalue of the one sided test is 0.5*(pvalue two tailed) in case the pvalue is significant and the pvalue of the one sided test is 1-0.5*(pvalue two tailed) in case the pvalue is not significant. Though I thought the pvalue calculation was based on which alternative hypothesis is considered (diff&amp;gt;0 or diff&amp;lt;0). Why does the way the pvalue is computed change according to the results?&lt;/P&gt;&lt;P&gt;Can anyone help me to understand?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jun 2020 10:30:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIXED-pvalue-calculation-UPPER-option/m-p/663941#M31642</guid>
      <dc:creator>atavenard</dc:creator>
      <dc:date>2020-06-22T10:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MIXED pvalue calculation UPPER option</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIXED-pvalue-calculation-UPPER-option/m-p/663967#M31647</link>
      <description>&lt;P&gt;I believe your interpretation is correct.&amp;nbsp; The directionality of one-tailed tests leads to the definition of the p value.&amp;nbsp; Let's suppose the alternative is that d&amp;gt;0, but you obtain a negative estimate for d.&amp;nbsp; The p value is then everything under the pdf curve to the right of d.&amp;nbsp; That is, 0.5 + (1 - the amount to the LEFT of the value of d).&amp;nbsp; A similar case comes out of an alternative hypothesis of d&amp;lt;0, and you obtain a positive estimate for d.&amp;nbsp; A pictorial representation of this should make this clearer, so just draw a Gaussian curve centered on 0, and put in some values for d, and then look at the part under the curve.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jun 2020 12:27:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIXED-pvalue-calculation-UPPER-option/m-p/663967#M31647</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2020-06-22T12:27:47Z</dc:date>
    </item>
  </channel>
</rss>

