<?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 how to calculate the parameters using proc nlmixed with Standard-Exponential–distribution in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-calculate-the-parameters-using-proc-nlmixed-with-Standard/m-p/651088#M195309</link>
    <description>&lt;PRE&gt;&lt;BR /&gt;&lt;BR /&gt;proc nlmixed data=lab3; /*the dataset include two variable: ID, age for death*/
parms mu 1 sigma 1 ;   
bounds 0 &amp;lt; sigma; 

G_t=exp ((age- mu)/sigma);
g=exp((age-mu)/sigma)/sigma;
ll= exp(- G_t)* g;
model age~ general(ll);
run;&lt;/PRE&gt;&lt;P&gt;I wrote the code based on the below conditions:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We consider the location-scale-skew transform&lt;BR /&gt;G(y)=exp[( y−μ)/σ] with derivative g(y)=exp[( y−μ)/σ]/σ.&lt;/P&gt;&lt;P&gt;We assume that G(Y)∼fE(y)=exp(−y). Then Y follows a generalized extreme value distribution fSE(y)=fE[G(y)]g(y)=exp[−G(y)]g(y)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;however, the code does not work well.&lt;/P&gt;&lt;PRE&gt;NOTE: Convergence criterion (FCONV=2.220446E-13) satisfied.
NOTE: At least one element of the gradient is greater than 1e-3.
NOTE: Moore-Penrose inverse is used in covariance matrix.
WARNING: The final Hessian matrix is full rank but has at least one negative eigenvalue. Second-order
         optimality condition violated.
NOTE: PROCEDURE NLMIXED used (Total process time):
      real time           1.98 seconds
      cpu time            1.61 seconds&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;does anyone know how to do this in SAS?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 27 May 2020 13:40:21 GMT</pubDate>
    <dc:creator>Jie111</dc:creator>
    <dc:date>2020-05-27T13:40:21Z</dc:date>
    <item>
      <title>how to calculate the parameters using proc nlmixed with Standard-Exponential–distribution</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-calculate-the-parameters-using-proc-nlmixed-with-Standard/m-p/651088#M195309</link>
      <description>&lt;PRE&gt;&lt;BR /&gt;&lt;BR /&gt;proc nlmixed data=lab3; /*the dataset include two variable: ID, age for death*/
parms mu 1 sigma 1 ;   
bounds 0 &amp;lt; sigma; 

G_t=exp ((age- mu)/sigma);
g=exp((age-mu)/sigma)/sigma;
ll= exp(- G_t)* g;
model age~ general(ll);
run;&lt;/PRE&gt;&lt;P&gt;I wrote the code based on the below conditions:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We consider the location-scale-skew transform&lt;BR /&gt;G(y)=exp[( y−μ)/σ] with derivative g(y)=exp[( y−μ)/σ]/σ.&lt;/P&gt;&lt;P&gt;We assume that G(Y)∼fE(y)=exp(−y). Then Y follows a generalized extreme value distribution fSE(y)=fE[G(y)]g(y)=exp[−G(y)]g(y)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;however, the code does not work well.&lt;/P&gt;&lt;PRE&gt;NOTE: Convergence criterion (FCONV=2.220446E-13) satisfied.
NOTE: At least one element of the gradient is greater than 1e-3.
NOTE: Moore-Penrose inverse is used in covariance matrix.
WARNING: The final Hessian matrix is full rank but has at least one negative eigenvalue. Second-order
         optimality condition violated.
NOTE: PROCEDURE NLMIXED used (Total process time):
      real time           1.98 seconds
      cpu time            1.61 seconds&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;does anyone know how to do this in SAS?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2020 13:40:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-calculate-the-parameters-using-proc-nlmixed-with-Standard/m-p/651088#M195309</guid>
      <dc:creator>Jie111</dc:creator>
      <dc:date>2020-05-27T13:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: how to calculate the parameters using proc nlmixed with Standard-Exponential–distribution</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-calculate-the-parameters-using-proc-nlmixed-with-Standard/m-p/651355#M195431</link>
      <description>&lt;PRE&gt;proc nlmixed data=lab3;&lt;BR /&gt;parms mu 80 sigma 5 ;&lt;BR /&gt;bounds 0 &amp;lt; sigma; &lt;BR /&gt;ll= -exp((age - mu)/sigma) + (age - mu)/sigma - log (sigma);&lt;BR /&gt;model age~general(ll);&lt;BR /&gt;run;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jie111_0-1590666017940.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/40075i09DDA87B394EC334/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jie111_0-1590666017940.png" alt="Jie111_0-1590666017940.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;updating.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The above syntax works well this time. it seems that I need to define the initial value for mu and sigma near the value of parameters. Is there any way to deal with the initial value or do I have to give the initial value artificially?&lt;/P&gt;</description>
      <pubDate>Thu, 28 May 2020 11:41:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-calculate-the-parameters-using-proc-nlmixed-with-Standard/m-p/651355#M195431</guid>
      <dc:creator>Jie111</dc:creator>
      <dc:date>2020-05-28T11:41:36Z</dc:date>
    </item>
  </channel>
</rss>

