<?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: Hessian and gradient in proc mixed in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Hessian-and-gradient-in-proc-mixed/m-p/814416#M40193</link>
    <description>&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;nbsp;Are these values valid, even if the model did not reach convergence?&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, they are "valid". The numbers are the gradient at the end of each iteration. Because PROC NLMIXED supports the BOUNDS statement, the final gradient might not be the zero vector. If the model does not converge, the final gradient might not be zero.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For unconstrained linear regression, there is no reason to report the gradient because it is the zero vector at the solution.&lt;/P&gt;</description>
    <pubDate>Fri, 20 May 2022 11:42:33 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2022-05-20T11:42:33Z</dc:date>
    <item>
      <title>Hessian and gradient in proc mixed</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Hessian-and-gradient-in-proc-mixed/m-p/814247#M40172</link>
      <description>&lt;P&gt;I would like to obtain the hessian and the gradients of my fixed effects in proc mixed. In proc glimmix I can obtain it with the code below, but I can not find how to have the equivalent my_gradient and my_hessian dataset in proc mixed. Due to characteristics of my model, I cannot use proc glimmix/proc nlmixed to fit my model instead of proc mixed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc glimmix data=data GRADIENT HESSIAN SUBGRADIENT=my_gradient;
model response0(ref='1') = var /noint s dist=byobs(distvar) link=byobs(linkvar) covb solution;
random intercept time/type=un subject=surveyID;
ods output hessian=my_hessian ;
run;&lt;/CODE&gt;&lt;/PRE&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;</description>
      <pubDate>Thu, 19 May 2022 09:19:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Hessian-and-gradient-in-proc-mixed/m-p/814247#M40172</guid>
      <dc:creator>mgx</dc:creator>
      <dc:date>2022-05-19T09:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: Hessian and gradient in proc mixed</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Hessian-and-gradient-in-proc-mixed/m-p/814279#M40175</link>
      <description>&lt;P&gt;Well, I think you have a handle on it using GLIMMIX.&amp;nbsp;&amp;nbsp;Check out&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp;'s blog post on ways to obtain the Hessian&amp;nbsp;&lt;A href="https://blogs.sas.com/content/iml/2019/02/13/hessian-maximum-likelihood-covariance.html#:~:text=Some%20regression%20procedures%20support%20the%20COVB%20option%20%28%22covariance,the%20PROC%20NLMIXED%20statement%20to%20display%20the%20Hessian." target="_self"&gt;https://blogs.sas.com/content/iml/2019/02/13/hessian-maximum-likelihood-covariance.html#:~:text=Some%20regression%20procedures%20support%20the%20COVB%20option%20%28%22covariance,the%20PROC%20NLMIXED%20statement%20to%20display%20the%20Hessian.&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have a different endpoint (continuous with normal errors), I think you can use a STORE statement in PROC MIXED, and then use the SHOW statement in PROC PLM to get the Hessian.&amp;nbsp; I don't see an equivalence for the gradient, though.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 12:53:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Hessian-and-gradient-in-proc-mixed/m-p/814279#M40175</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2022-05-19T12:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: Hessian and gradient in proc mixed</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Hessian-and-gradient-in-proc-mixed/m-p/814281#M40176</link>
      <description>&lt;P&gt;Thank you for your response!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 12:57:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Hessian-and-gradient-in-proc-mixed/m-p/814281#M40176</guid>
      <dc:creator>mgx</dc:creator>
      <dc:date>2022-05-19T12:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: Hessian and gradient in proc mixed</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Hessian-and-gradient-in-proc-mixed/m-p/814412#M40192</link>
      <description>&lt;P&gt;It is possible to implement the model with&amp;nbsp; proc nlmixed, but reaching convergence is very time-consuming and maybe not possible. However, even without convergence SAS creates a dataset with the gradients. Are these values valid, even if the model did not reach convergence?&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2022 11:02:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Hessian-and-gradient-in-proc-mixed/m-p/814412#M40192</guid>
      <dc:creator>mgx</dc:creator>
      <dc:date>2022-05-20T11:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: Hessian and gradient in proc mixed</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Hessian-and-gradient-in-proc-mixed/m-p/814416#M40193</link>
      <description>&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;nbsp;Are these values valid, even if the model did not reach convergence?&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, they are "valid". The numbers are the gradient at the end of each iteration. Because PROC NLMIXED supports the BOUNDS statement, the final gradient might not be the zero vector. If the model does not converge, the final gradient might not be zero.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For unconstrained linear regression, there is no reason to report the gradient because it is the zero vector at the solution.&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2022 11:42:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Hessian-and-gradient-in-proc-mixed/m-p/814416#M40193</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2022-05-20T11:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: Hessian and gradient in proc mixed</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Hessian-and-gradient-in-proc-mixed/m-p/828661#M41019</link>
      <description>&lt;P&gt;Related to this question: in proc mixed you cannot get the hessian for the fixed effects estimates, only the variance-covariance matrix (the store statement gives the error that the model does not contain the hessian). What is the difference between the hessian en the variance-covariance matrixof the fixed effects?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2022 10:32:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Hessian-and-gradient-in-proc-mixed/m-p/828661#M41019</guid>
      <dc:creator>mgx</dc:creator>
      <dc:date>2022-08-15T10:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: Hessian and gradient in proc mixed</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Hessian-and-gradient-in-proc-mixed/m-p/828664#M41020</link>
      <description>&lt;P&gt;The Hessian is the inverse of the covariance matrix of the fixed effects. See&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2019/02/13/hessian-maximum-likelihood-covariance.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2019/02/13/hessian-maximum-likelihood-covariance.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2022 11:03:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Hessian-and-gradient-in-proc-mixed/m-p/828664#M41020</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2022-08-15T11:03:02Z</dc:date>
    </item>
  </channel>
</rss>

