<?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: Proc ARIMA output the outliers dates in a dataset in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-ARIMA-output-the-outliers-dates-in-a-dataset/m-p/930608#M366139</link>
    <description>&lt;P&gt;Any SAS output (like the output table) can be output to a data set via ODS OUTPUT, you can see all the table names for PROC ARIMA&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/etsug/etsug_arima_details53.htm" target="_self"&gt;here&lt;/A&gt; (and similarly for any PROC by looking for Details/Table Names) and you want the table OUTLIERDETAILS&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So you want&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc arima data=CASUSER.ds out=ds_outliers;
    ods output outlierdetails=outlierdetails;
  	identify var=dk  noprint;
	by region;
	estimate method=ml;
	outlier id=date;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 03 Jun 2024 14:11:03 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2024-06-03T14:11:03Z</dc:date>
    <item>
      <title>Proc ARIMA output the outliers dates in a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-ARIMA-output-the-outliers-dates-in-a-dataset/m-p/930607#M366138</link>
      <description>&lt;P&gt;Hello Community,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am dealing with Proc ARIMA for outliers detection, I would like to output the dataset with the outliers dates by a variable:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
/*-- Outlier Detection --*/
proc arima data=CASUSER.ds out=ds_outliers;
  	identify var=dk  noprint;
	by region;
	estimate method=ml;
	outlier id=date;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;This is the output for a single region, I would like to flag the outliers in my original dataset. I checked and with out= option the is just statistics of the model.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="harmonic_0-1717422648877.png" style="width: 981px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/96922iAB6B563E4A2BE3B2/image-dimensions/981x666?v=v2" width="981" height="666" role="button" title="harmonic_0-1717422648877.png" alt="harmonic_0-1717422648877.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2024 14:02:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-ARIMA-output-the-outliers-dates-in-a-dataset/m-p/930607#M366138</guid>
      <dc:creator>harmonic</dc:creator>
      <dc:date>2024-06-03T14:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: Proc ARIMA output the outliers dates in a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-ARIMA-output-the-outliers-dates-in-a-dataset/m-p/930608#M366139</link>
      <description>&lt;P&gt;Any SAS output (like the output table) can be output to a data set via ODS OUTPUT, you can see all the table names for PROC ARIMA&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/etsug/etsug_arima_details53.htm" target="_self"&gt;here&lt;/A&gt; (and similarly for any PROC by looking for Details/Table Names) and you want the table OUTLIERDETAILS&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So you want&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc arima data=CASUSER.ds out=ds_outliers;
    ods output outlierdetails=outlierdetails;
  	identify var=dk  noprint;
	by region;
	estimate method=ml;
	outlier id=date;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 03 Jun 2024 14:11:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-ARIMA-output-the-outliers-dates-in-a-dataset/m-p/930608#M366139</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-06-03T14:11:03Z</dc:date>
    </item>
  </channel>
</rss>

