<?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 Proc phreg one sided test using estimate and lower statment and option in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-phreg-one-sided-test-using-estimate-and-lower-statment-and/m-p/561127#M27754</link>
    <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe that I'm pretty stupid because I cannot seem to get proc phreg to perform a one-sided test using the estimate statement with the lower option. I cannot find any relevant examples online so I'm seeking your expertise!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here follows some example code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc phreg data=output nosummary;
strata yearentry origin ;
class sex;
effect aspl=spline(agefirstentry / naturalcubic knotmethod=equal(5));
model (entry,exit)*censored(1)= PARAMETER sex aspl&amp;nbsp; / rl;
estimate 'PARAMETER' /lower;
run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Generating the following error. Removing quotes yields the same result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;22
76
ERROR 22-322: Syntax error, expecting one of the following: a name, INTERCEPT.
ERROR 76-322: Syntax error, statement will be ignored.&lt;/PRE&gt;&lt;P&gt;Do you have any ideas?&amp;nbsp; I cannot figure this out ...(&lt;A href="https://support.sas.com/documentation/cdl/en/statug/63962/HTML/default/viewer.htm#statug_phreg_sect014.htm" target="_blank"&gt;https://support.sas.com/documentation/cdl/en/statug/63962/HTML/default/viewer.htm#statug_phreg_sect014.htm&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Thu, 23 May 2019 13:04:51 GMT</pubDate>
    <dc:creator>td1345</dc:creator>
    <dc:date>2019-05-23T13:04:51Z</dc:date>
    <item>
      <title>Proc phreg one sided test using estimate and lower statment and option</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-phreg-one-sided-test-using-estimate-and-lower-statment-and/m-p/561127#M27754</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe that I'm pretty stupid because I cannot seem to get proc phreg to perform a one-sided test using the estimate statement with the lower option. I cannot find any relevant examples online so I'm seeking your expertise!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here follows some example code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc phreg data=output nosummary;
strata yearentry origin ;
class sex;
effect aspl=spline(agefirstentry / naturalcubic knotmethod=equal(5));
model (entry,exit)*censored(1)= PARAMETER sex aspl&amp;nbsp; / rl;
estimate 'PARAMETER' /lower;
run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Generating the following error. Removing quotes yields the same result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;22
76
ERROR 22-322: Syntax error, expecting one of the following: a name, INTERCEPT.
ERROR 76-322: Syntax error, statement will be ignored.&lt;/PRE&gt;&lt;P&gt;Do you have any ideas?&amp;nbsp; I cannot figure this out ...(&lt;A href="https://support.sas.com/documentation/cdl/en/statug/63962/HTML/default/viewer.htm#statug_phreg_sect014.htm" target="_blank"&gt;https://support.sas.com/documentation/cdl/en/statug/63962/HTML/default/viewer.htm#statug_phreg_sect014.htm&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2019 13:04:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-phreg-one-sided-test-using-estimate-and-lower-statment-and/m-p/561127#M27754</guid>
      <dc:creator>td1345</dc:creator>
      <dc:date>2019-05-23T13:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: Proc phreg one sided test using estimate and lower statment and option</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-phreg-one-sided-test-using-estimate-and-lower-statment-and/m-p/561232#M27757</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/272345"&gt;@td1345&lt;/a&gt;,&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/272345"&gt;@td1345&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I believe that I'm pretty stupid (...)&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Impossible! You're doing quite sophisticated statistical analyses. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Indeed, I prefer a much less advanced example to (hopefully) answer your question. I took it from the &lt;A href="https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_phreg_gettingstarted01.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en" target="_blank" rel="noopener"&gt;PROC PHREG documentation&lt;/A&gt;, simplified it further and added the ESTIMATE statement:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc phreg data=rats;
   model days*status(0)=group;
   estimate 'enter your label here' group 1 / lower;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Partial output:&lt;/P&gt;
&lt;PRE&gt;                     Analysis of Maximum Likelihood Estimates

                    Parameter      Standard                                  Hazard
Parameter    DF      Estimate         Error    Chi-Square    Pr &amp;gt; ChiSq       Ratio

Group         1      -0.14401       0.24192        0.3543        0.5517       0.866


                                  Estimate

                                     Standard
Label                    Estimate       Error    z Value    Tails      Pr &amp;lt; z

enter your label here     -0.1440      0.2419      -0.60    Lower      0.2758&lt;/PRE&gt;
&lt;P&gt;In this particular example the results of the&amp;nbsp;ESTIMATE statement do not add much value to the results of maximum likelihood estimation: estimate and SE are the same, Chi-Square=(z Value)**2, (Pr &amp;lt; z)=(Pr &amp;gt; ChiSq)/2, not surprisingly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, in your statement&amp;nbsp;&lt;FONT face="courier new,courier"&gt;estimate 'PARAMETER' /lower;&lt;/FONT&gt; you missed both the model effect (e.g.&amp;nbsp;&lt;FONT face="courier new,courier"&gt;parameter&lt;/FONT&gt; without quotes) and the value(s). For details on the latter I'd like to refer to section&amp;nbsp;&lt;A href="https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_introcom_sect034.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en" target="_blank" rel="noopener"&gt;Shared Concepts and Topics&lt;/A&gt; in the SAS/STAT documentation. (As you probably know, the ESTIMATE statement is not unique to PROC PHREG.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just one more remark: If, in the RATS dataset used above, GROUP had &lt;EM&gt;three&lt;/EM&gt; levels &lt;EM&gt;and&lt;/EM&gt; it was specified in a CLASS statement so that it had &lt;EM&gt;two&lt;/EM&gt; parameters in the model, say &lt;FONT face="symbol"&gt;b&lt;/FONT&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;1&lt;/FONT&gt;&amp;nbsp;and &lt;FONT face="symbol"&gt;b&lt;/FONT&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;2&lt;/FONT&gt;&amp;nbsp;(for the two design variables), we could, for example, request an estimate (and the corresponding test) for a &lt;EM&gt;linear combination&lt;/EM&gt; of the two parameters, e.g. 7&lt;FONT face="symbol"&gt;b&lt;/FONT&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;1&lt;/FONT&gt;−3&lt;FONT face="symbol"&gt;b&lt;/FONT&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;2&lt;/FONT&gt;, with&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;estimate 'enter your label here' group 7 -3 / lower;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2019 18:14:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-phreg-one-sided-test-using-estimate-and-lower-statment-and/m-p/561232#M27757</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2019-05-23T18:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: Proc phreg one sided test using estimate and lower statment and option</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-phreg-one-sided-test-using-estimate-and-lower-statment-and/m-p/561336#M27761</link>
      <description>&lt;P&gt;You saved my day! Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2019 08:42:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-phreg-one-sided-test-using-estimate-and-lower-statment-and/m-p/561336#M27761</guid>
      <dc:creator>td1345</dc:creator>
      <dc:date>2019-05-24T08:42:46Z</dc:date>
    </item>
  </channel>
</rss>

