<?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: SAS_StateSpaceModel in SAS Forecasting and Econometrics</title>
    <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/SAS-StateSpaceModel/m-p/409591#M2780</link>
    <description>&lt;P&gt;You've got the right idea, but&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) The syntax is wrong, so check the doc. The OUTEST= option goes on the ESTIMATE statement, not on the PROC UCM statement.&lt;/P&gt;
&lt;P&gt;2) If all you want are the parameter estimates, why are you doing all the other computations? For example, the forecast and confidence limits are expensive, so get rid of the FORECAST statement if you aren't saving the results. Only keep the statements that are relevant to the results that you intend to use.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As mentioned in the "8 Tips" article, run and debug your new code on a small subset of the data (maybe 5-10 BY groups) before you run it against the full data.&lt;/P&gt;</description>
    <pubDate>Wed, 01 Nov 2017 19:15:41 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2017-11-01T19:15:41Z</dc:date>
    <item>
      <title>SAS_StateSpaceModel</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/SAS-StateSpaceModel/m-p/409484#M2767</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to ask a question related State Space procedure. I have a huge dataset that contains a million groups. I need to find permanent and transitory components of each group by using State Space Model. I run the following code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class="  language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token procnames"&gt;proc&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;ucm&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;data&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;work&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
	&lt;SPAN class="token procnames"&gt;model&lt;/SPAN&gt; price&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
	&lt;SPAN class="token statement"&gt;by&lt;/SPAN&gt; &lt;SPAN class="token keyword"&gt;group&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
	irregular &lt;SPAN class="token procnames"&gt;plot&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;smooth&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
	level checkbreak &lt;SPAN class="token procnames"&gt;plot&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;smooth&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
	estimate &lt;SPAN class="token procnames"&gt;plot&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;residual&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
	&lt;SPAN class="token procnames"&gt;forecast&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;plot&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;forecasts lead&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;10&lt;/SPAN&gt; alpha&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;0.5&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token procnames"&gt;run&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This code works well. I have just one issue. As I have a huge number of groups, it takes a lot of time (approximately 3 months). Do you know any way/method that I can use to increase the efficiency and reduce the time. &amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for your helps.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2017 14:39:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/SAS-StateSpaceModel/m-p/409484#M2767</guid>
      <dc:creator>Khaladdin</dc:creator>
      <dc:date>2017-11-01T14:39:41Z</dc:date>
    </item>
    <item>
      <title>StateSpaceModel</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/SAS-StateSpaceModel/m-p/409374#M2770</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to ask a question related State Space procedure. I have a huge dataset that contains a million groups. I need to find permanent and transitory components of each group by using State Space Model. I run the following code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token procnames"&gt;proc&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;ucm&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;data&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;work&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
	&lt;SPAN class="token procnames"&gt;model&lt;/SPAN&gt; price&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
	&lt;SPAN class="token statement"&gt;by&lt;/SPAN&gt; &lt;SPAN class="token keyword"&gt;group&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
	irregular &lt;SPAN class="token procnames"&gt;plot&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;smooth&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
	level checkbreak &lt;SPAN class="token procnames"&gt;plot&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;smooth&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
	estimate &lt;SPAN class="token procnames"&gt;plot&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;residual&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
	&lt;SPAN class="token procnames"&gt;forecast&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;plot&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;forecasts lead&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;10&lt;/SPAN&gt; alpha&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;0.5&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token procnames"&gt;run&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This code works well. I have just one issue. As I have a huge number of groups, it takes a lot of time (approximately 3 months). Do you know any way/method that I can use to increase the efficiency and reduce the time. &amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for your helps.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2017 08:09:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/SAS-StateSpaceModel/m-p/409374#M2770</guid>
      <dc:creator>Khaladdin</dc:creator>
      <dc:date>2017-11-01T08:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: StateSpaceModel</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/SAS-StateSpaceModel/m-p/409454#M2771</link>
      <description>&lt;PRE&gt;
It is a time series analysis question.
Please post it at Forecast forum.


&lt;/PRE&gt;</description>
      <pubDate>Wed, 01 Nov 2017 13:23:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/SAS-StateSpaceModel/m-p/409454#M2771</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-11-01T13:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: StateSpaceModel</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/SAS-StateSpaceModel/m-p/409485#M2772</link>
      <description>Thanks</description>
      <pubDate>Wed, 01 Nov 2017 14:40:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/SAS-StateSpaceModel/m-p/409485#M2772</guid>
      <dc:creator>Khaladdin</dc:creator>
      <dc:date>2017-11-01T14:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: SAS_StateSpaceModel</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/SAS-StateSpaceModel/m-p/409509#M2768</link>
      <description>&lt;P&gt;The only thing I can think of is to distribute the problem on several machines (each machine gets a different&amp;nbsp;set of by-groups).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2017 15:27:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/SAS-StateSpaceModel/m-p/409509#M2768</guid>
      <dc:creator>rselukar</dc:creator>
      <dc:date>2017-11-01T15:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: SAS_StateSpaceModel</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/SAS-StateSpaceModel/m-p/409553#M2774</link>
      <description>&lt;P&gt;If you have millions of BY groups, I question whether you need all those plots.How are you going to view 4 million plots?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you don't need printed output for certain sections, suppress it. For example, use PRINT=NONE on the ESTIMATE statement or use the ODS&amp;nbsp;EXCLUDE statement to suppress output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My advice is to (1) Use NOPRINT to turn off printing; (2) get rid of the plots, and (3) use OUTEST= and OUTFOR= options to send the results to data sets.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is this real data or a simulation? If a simulation, see Tips #4 through #8 in the article &lt;A href="https://blogs.sas.com/content/iml/2012/06/06/tips-to-make-your-simulation-run-faster.html" target="_self"&gt;"Eight tips to make your simulation run faster."&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2017 17:25:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/SAS-StateSpaceModel/m-p/409553#M2774</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-11-01T17:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: SAS_StateSpaceModel</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/SAS-StateSpaceModel/m-p/409579#M2777</link>
      <description>&lt;P&gt;Hi Rick,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your suggestions. Actually, I do not need the plots. I did not write my full code when I asked the question. My full code is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token statement"&gt;ods&lt;/SPAN&gt; trace on&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="token statement"&gt;ods&lt;/SPAN&gt; &lt;SPAN class="token statement"&gt;select&lt;/SPAN&gt; ParameterEstimates&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="token statement"&gt;ods&lt;/SPAN&gt; output ParameterEstimates&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;myEstimates&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="token procnames"&gt;proc&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;ucm&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;data&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;work&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
	&lt;SPAN class="token procnames"&gt;model&lt;/SPAN&gt; price&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
	&lt;SPAN class="token statement"&gt;by&lt;/SPAN&gt; &lt;SPAN class="token keyword"&gt;group&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
	irregular &lt;SPAN class="token procnames"&gt;plot&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;smooth&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
	level checkbreak &lt;SPAN class="token procnames"&gt;plot&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;smooth&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
	estimate &lt;SPAN class="token procnames"&gt;plot&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;residual&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
	&lt;SPAN class="token procnames"&gt;forecast&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;plot&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;forecasts lead&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;10&lt;/SPAN&gt; alpha&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;0.5&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token procnames"&gt;run&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="token procnames"&gt;proc&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;print&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;data&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;myEstimates&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token procnames"&gt;run&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="token procnames"&gt;proc&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;transpose&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;data&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;myEstimates&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token keyword"&gt;keep&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token keyword"&gt;group&lt;/SPAN&gt; component estimate&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;
               out&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;transposedEstimates&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
  &lt;SPAN class="token statement"&gt;by&lt;/SPAN&gt; &lt;SPAN class="token keyword"&gt;group&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
  &lt;SPAN class="token keyword"&gt;id&lt;/SPAN&gt; component&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token procnames"&gt;run&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;So, I have already transferred my results to datasets. &amp;nbsp;But nothing changes. It will take a lot.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2017 18:43:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/SAS-StateSpaceModel/m-p/409579#M2777</guid>
      <dc:creator>Khaladdin</dc:creator>
      <dc:date>2017-11-01T18:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: SAS_StateSpaceModel</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/SAS-StateSpaceModel/m-p/409583#M2778</link>
      <description>&lt;P&gt;You might not realize that the procedure creates those millions of graphs but that ODS does not show them. Get rid of the graph requests. Also, it is much more efficient to use NOPRINT&amp;nbsp;and OUTEST=myEstimates than to use the code you show.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, you don't need the&amp;nbsp;PROC PRINT, which is probably trying to print a data set that has 10-15 million observations in it.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2017 18:55:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/SAS-StateSpaceModel/m-p/409583#M2778</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-11-01T18:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: SAS_StateSpaceModel</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/SAS-StateSpaceModel/m-p/409585#M2779</link>
      <description>&lt;P&gt;Thanks again. So, the following code might be more efficient, yes?:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;proc ucm data=work 
         outest=myEstimates
         noprint
         ;
    by group;
    model price;
    irregular;
    level checkbreak;
    estimate;
    forecast lead=10 alpha=0.5;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2017 18:59:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/SAS-StateSpaceModel/m-p/409585#M2779</guid>
      <dc:creator>Khaladdin</dc:creator>
      <dc:date>2017-11-01T18:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: SAS_StateSpaceModel</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/SAS-StateSpaceModel/m-p/409591#M2780</link>
      <description>&lt;P&gt;You've got the right idea, but&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) The syntax is wrong, so check the doc. The OUTEST= option goes on the ESTIMATE statement, not on the PROC UCM statement.&lt;/P&gt;
&lt;P&gt;2) If all you want are the parameter estimates, why are you doing all the other computations? For example, the forecast and confidence limits are expensive, so get rid of the FORECAST statement if you aren't saving the results. Only keep the statements that are relevant to the results that you intend to use.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As mentioned in the "8 Tips" article, run and debug your new code on a small subset of the data (maybe 5-10 BY groups) before you run it against the full data.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2017 19:15:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/SAS-StateSpaceModel/m-p/409591#M2780</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-11-01T19:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: SAS_StateSpaceModel</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/SAS-StateSpaceModel/m-p/409595#M2781</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;proc ucm data=work 
         noprint
         ;
    by group;
    model price;
    irregular;
    level checkbreak;
    estimate  outest=myEstimates;
run;&lt;/CODE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;What about this one?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2017 19:22:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/SAS-StateSpaceModel/m-p/409595#M2781</guid>
      <dc:creator>Khaladdin</dc:creator>
      <dc:date>2017-11-01T19:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: SAS_StateSpaceModel</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/SAS-StateSpaceModel/m-p/409602#M2782</link>
      <description>&lt;P&gt;Rick is correct.&amp;nbsp; One more thing, since you are using the checkbreak option in the LEVEL statement, I am assuming that you want to save the detected break points.&amp;nbsp; Since the break points are produced in an ODS table only, NOPRINT may not be the way to go.&amp;nbsp; Check all the tables produced by your UCM call and "ods exclude" them and&amp;nbsp;"ods output" the outlier summary table.&amp;nbsp; Something like this will work:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc ucm data=work&amp;nbsp; plots=none;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ods exclude DataSet EstimationSpan ForecastSpan&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; InitialParameters FitSummary ConvergenceStatus &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ParameterEstimates FitStatistics ComponentSignificance&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TrendInformation OutlierSummary;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ods output OutlierSummary = osummary;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; by group;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; model price;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; irregular;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; level checkbreak;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; estimate&amp;nbsp; outest=myEstimates;&lt;BR /&gt;run;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2017 19:33:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/SAS-StateSpaceModel/m-p/409602#M2782</guid>
      <dc:creator>rselukar</dc:creator>
      <dc:date>2017-11-01T19:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: SAS_StateSpaceModel</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/SAS-StateSpaceModel/m-p/409606#M2783</link>
      <description>&lt;P&gt;Or delete that statement if you do not need it. NOPRINT is faster than ODS EXCLUDE.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This new code should go faster. How much faster depends on your data. As I said, try it for 10 BY groups to&amp;nbsp;make sure it works as you expect. Then time how long it takes to compute for 100 or 1000 BY groups. From that you can estimate how long it will take for a million BY groups.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You never answered my question about whether this is a simulation. If it is, you almost surely can get by with fewer than 1 million.simulated samples. I'd try 10,000 and see how large the Monte Carlo standard errors are.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2017 19:41:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/SAS-StateSpaceModel/m-p/409606#M2783</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-11-01T19:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: SAS_StateSpaceModel</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/SAS-StateSpaceModel/m-p/409611#M2784</link>
      <description>Sorry for not answering your question related to simulation. I missed it. It is a real data, not simulation.</description>
      <pubDate>Wed, 01 Nov 2017 19:45:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/SAS-StateSpaceModel/m-p/409611#M2784</guid>
      <dc:creator>Khaladdin</dc:creator>
      <dc:date>2017-11-01T19:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: SAS_StateSpaceModel</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/SAS-StateSpaceModel/m-p/409614#M2785</link>
      <description>&lt;P&gt;Interesting. May I ask what the 1 million BY groups represent?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2017 19:47:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/SAS-StateSpaceModel/m-p/409614#M2785</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-11-01T19:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: SAS_StateSpaceModel</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/SAS-StateSpaceModel/m-p/409615#M2786</link>
      <description>Surely. So, I have a datasets that time period is one year. Each group represents each second for this datasets.</description>
      <pubDate>Wed, 01 Nov 2017 19:50:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/SAS-StateSpaceModel/m-p/409615#M2786</guid>
      <dc:creator>Khaladdin</dc:creator>
      <dc:date>2017-11-01T19:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: SAS_StateSpaceModel</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/SAS-StateSpaceModel/m-p/409618#M2787</link>
      <description>&lt;P&gt;How many observations in each BY group? What do you hope to learn from your analysis?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2017 20:04:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/SAS-StateSpaceModel/m-p/409618#M2787</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-11-01T20:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: SAS_StateSpaceModel</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/SAS-StateSpaceModel/m-p/409620#M2788</link>
      <description>each group has at least 10 observations. I will just apply state space model for a variable that I want to examine.</description>
      <pubDate>Wed, 01 Nov 2017 20:08:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/SAS-StateSpaceModel/m-p/409620#M2788</guid>
      <dc:creator>Khaladdin</dc:creator>
      <dc:date>2017-11-01T20:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: SAS_StateSpaceModel</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/SAS-StateSpaceModel/m-p/409793#M2791</link>
      <description>It works very well. Thanks a lot.</description>
      <pubDate>Thu, 02 Nov 2017 12:07:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/SAS-StateSpaceModel/m-p/409793#M2791</guid>
      <dc:creator>Khaladdin</dc:creator>
      <dc:date>2017-11-02T12:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: SAS_StateSpaceModel</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/SAS-StateSpaceModel/m-p/409796#M2792</link>
      <description>&lt;P&gt;Can you summarize the improvement? Run time went from three months to ... what? Three hours?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 12:16:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/SAS-StateSpaceModel/m-p/409796#M2792</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-11-02T12:16:46Z</dc:date>
    </item>
  </channel>
</rss>

