<?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: UCM Parameter estimation failed: the likelihood function could not be evaluated at the initial p in SAS Forecasting and Econometrics</title>
    <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/UCM-Parameter-estimation-failed-the-likelihood-function-could/m-p/685675#M3983</link>
    <description>&lt;P&gt;There are a couple of possibilities for the cause.&amp;nbsp; The usual suspect for this kind of error is overspecifying the model.&amp;nbsp; Since &amp;amp;model resolves to a single target variable, I would suspect that the splinereg statements are causing the problem&amp;nbsp; Another is that the data are pathological in the sense that there are variable values that are not compatible with one or another when combined in the model.&amp;nbsp; As the Parameter Estimation section of the Details for PROC UCM says: "&lt;SPAN style="font-family: inherit;"&gt;In most cases the difficulties in parameter estimation are associated with the specification of a model that is not appropriate for the series being modeled."&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;So let's assume that is taken care of, and you still get these kinds of errors.&amp;nbsp; Sometimes changing the optimization method will help, as will providing starting values.(although this is referred to in the Parameter Estimation section, I can't see right off how to do it).&amp;nbsp; The section Computational Issues also has a subsection on convergence issues and how to address them.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;SteveDenham&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Sep 2020 12:32:13 GMT</pubDate>
    <dc:creator>SteveDenham</dc:creator>
    <dc:date>2020-09-22T12:32:13Z</dc:date>
    <item>
      <title>UCM Parameter estimation failed: the likelihood function could not be evaluated at the initial point</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/UCM-Parameter-estimation-failed-the-likelihood-function-could/m-p/685647#M3982</link>
      <description>&lt;P&gt;Hi everyone,&lt;BR /&gt;I came across these two types of ERROR during the execution of the UCM procedure:&lt;BR /&gt;1. ERROR: Parameter estimation failed because the likelihood function or its gradient could not be evaluated at some stage of estimation. No further computations will be done.&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;ERROR: Parameter estimation failed because the likelihood function could not be evaluated at the initial point.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code that I'm using is the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc ucm data=&amp;amp;ds_in;&lt;BR /&gt;id &amp;amp;time_id interval=day;&lt;BR /&gt;model &amp;amp;target;&lt;BR /&gt;splinereg &amp;amp;var1 degree=2 nknots=1;&lt;BR /&gt;splinereg &amp;amp;var2 degree=2 nknots=1;&lt;BR /&gt;season length=7 type=dummy;&lt;BR /&gt;outlier;&lt;BR /&gt;deplag lags=1;&lt;BR /&gt;level plot=smooth;&lt;BR /&gt;estimate plot=panel;&lt;BR /&gt;forecast back=0 lead=1 outfor=ds_out;&lt;BR /&gt;ods output OutlierSummary=ucm_outlier;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;where:&lt;/P&gt;&lt;P&gt;- ds_in is the input dataset,&amp;nbsp;&lt;/P&gt;&lt;P&gt;- time_id is the time variabile (date9. format because the dataset is daily),&lt;/P&gt;&lt;P&gt;- target is the target variable,&lt;/P&gt;&lt;P&gt;- var1 and var2 are the explanatory variables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What would account for that kind of errors? May I have to insert an additional statement in the procedure?&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2020 10:14:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/UCM-Parameter-estimation-failed-the-likelihood-function-could/m-p/685647#M3982</guid>
      <dc:creator>CRizzolo</dc:creator>
      <dc:date>2020-09-22T10:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: UCM Parameter estimation failed: the likelihood function could not be evaluated at the initial p</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/UCM-Parameter-estimation-failed-the-likelihood-function-could/m-p/685675#M3983</link>
      <description>&lt;P&gt;There are a couple of possibilities for the cause.&amp;nbsp; The usual suspect for this kind of error is overspecifying the model.&amp;nbsp; Since &amp;amp;model resolves to a single target variable, I would suspect that the splinereg statements are causing the problem&amp;nbsp; Another is that the data are pathological in the sense that there are variable values that are not compatible with one or another when combined in the model.&amp;nbsp; As the Parameter Estimation section of the Details for PROC UCM says: "&lt;SPAN style="font-family: inherit;"&gt;In most cases the difficulties in parameter estimation are associated with the specification of a model that is not appropriate for the series being modeled."&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;So let's assume that is taken care of, and you still get these kinds of errors.&amp;nbsp; Sometimes changing the optimization method will help, as will providing starting values.(although this is referred to in the Parameter Estimation section, I can't see right off how to do it).&amp;nbsp; The section Computational Issues also has a subsection on convergence issues and how to address them.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;SteveDenham&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2020 12:32:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/UCM-Parameter-estimation-failed-the-likelihood-function-could/m-p/685675#M3983</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2020-09-22T12:32:13Z</dc:date>
    </item>
  </channel>
</rss>

