<?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: need to create output of original data and seasonaly adjusted data in SAS Forecasting and Econometrics</title>
    <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/need-to-create-output-of-original-data-and-seasonaly-adjusted/m-p/540483#M3471</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regarding your first question on PROC X12, you should be able to obtain your desired data set by adding an output data set name to the OUT= option in the OUTPUT statement.&amp;nbsp; For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;output&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;out&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=out &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;b1&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;d11&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This creates a data set called OUT with variables that contain the B1 and D11 series.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regarding your second question on PROC X12, there are 4 seasonal adjustment modes:&amp;nbsp; Multiplicative, Additive, Log-Additive, and Pseudo-Additive.&amp;nbsp; The default seasonal adjustment mode is multiplicative.&amp;nbsp; The multiplicative and log-additive modes require all data values to be greater than 0 (ie. strictly positive).&amp;nbsp; The pseudo-additive mode requires all data values to be&amp;nbsp;non-negative (ie.&amp;nbsp;&amp;gt;=&amp;nbsp;0).&amp;nbsp; Only the additive mode allows negative or zero values in the data.&amp;nbsp; You can modify your X11 statement in your code as follows to specify the additive seasonal adjustment mode:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;x11&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;mode&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=add;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For more details on these seasonal adjustment modes, please see the X11 statement documentation in the PROC X12 or PROC X13 documentation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps!&lt;/P&gt;
&lt;P&gt;dw&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Mar 2019 16:00:58 GMT</pubDate>
    <dc:creator>dw_sas</dc:creator>
    <dc:date>2019-03-05T16:00:58Z</dc:date>
    <item>
      <title>need to create output of original data and seasonaly adjusted data</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/need-to-create-output-of-original-data-and-seasonaly-adjusted/m-p/540113#M3467</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I have a 2 part question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Having issues with proc x12.&lt;/P&gt;&lt;P&gt;This is my code, but the Output Data only produces the column for final seasonally adjusted data (D11) and not for&lt;/P&gt;&lt;P&gt;the original data (b1). Ideally I want both b1 and d11 right next to each other so I can quickly export to excel and do additional analysis.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;x12&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;= dividend_yield2 &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;date&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=date;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;var&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; APAC; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;OUTPUT&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;OUT&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;= &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;b1&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;d11&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;x11&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;2. For some varaibles, the data can be negative sometimes and when I try to run the same code with a different variable I get the following error message. How to get around this?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;x12&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;= dividend_yield2 &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;date&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=date;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;var&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; LATAM; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;OUTPUT&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;OUT&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;= &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;b1&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;d11&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;x11&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;--Then I get the following error message as this variable has some negative values.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: Multiplicative or log-additive seasonal adjustment cannot be done with a series with zero or negative values.&lt;/P&gt;&lt;P&gt;ERROR: An error was found in PROC X12 input. Processing skipped for variable LATAM.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 17:27:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/need-to-create-output-of-original-data-and-seasonaly-adjusted/m-p/540113#M3467</guid>
      <dc:creator>ubshams</dc:creator>
      <dc:date>2019-03-04T17:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: need to create output of original data and seasonaly adjusted data</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/need-to-create-output-of-original-data-and-seasonaly-adjusted/m-p/540483#M3471</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regarding your first question on PROC X12, you should be able to obtain your desired data set by adding an output data set name to the OUT= option in the OUTPUT statement.&amp;nbsp; For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;output&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;out&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=out &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;b1&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;d11&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This creates a data set called OUT with variables that contain the B1 and D11 series.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regarding your second question on PROC X12, there are 4 seasonal adjustment modes:&amp;nbsp; Multiplicative, Additive, Log-Additive, and Pseudo-Additive.&amp;nbsp; The default seasonal adjustment mode is multiplicative.&amp;nbsp; The multiplicative and log-additive modes require all data values to be greater than 0 (ie. strictly positive).&amp;nbsp; The pseudo-additive mode requires all data values to be&amp;nbsp;non-negative (ie.&amp;nbsp;&amp;gt;=&amp;nbsp;0).&amp;nbsp; Only the additive mode allows negative or zero values in the data.&amp;nbsp; You can modify your X11 statement in your code as follows to specify the additive seasonal adjustment mode:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;x11&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;mode&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=add;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For more details on these seasonal adjustment modes, please see the X11 statement documentation in the PROC X12 or PROC X13 documentation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps!&lt;/P&gt;
&lt;P&gt;dw&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 16:00:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/need-to-create-output-of-original-data-and-seasonaly-adjusted/m-p/540483#M3471</guid>
      <dc:creator>dw_sas</dc:creator>
      <dc:date>2019-03-05T16:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: need to create output of original data and seasonaly adjusted data</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/need-to-create-output-of-original-data-and-seasonaly-adjusted/m-p/540506#M3473</link>
      <description>&lt;P&gt;In addition to Donna's suggestion, you can use the following code to select additive or multiplicative mode based on the data:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;61&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; title "auto transform";&lt;BR /&gt;62&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; proc x12 data=series8 date=date2 seasons=4;&lt;BR /&gt;63&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; transform function=auto;&lt;BR /&gt;64&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x11;&lt;BR /&gt;65&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;
&lt;P&gt;NOTE: This release of the X12 procedure is based on the Census Bureau X-13ARIMA-SEATS Release Version 1.1.&lt;BR /&gt;WARNING: Automatic transformation selection cannot be done on a series with zero or negative values.&lt;BR /&gt;WARNING: Automatic transformation selection cannot be done on a series with zero or negative values.&lt;BR /&gt;NOTE: The PROCEDURE X12 printed pages 98-139.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will get a warning about the negative values, but the decomposition will be done.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The default for the U.S. Census Bureau method is not to display the A1 and B1 tables if the tables are identical.&lt;/P&gt;
&lt;P&gt;In this case, you can use the A1 table as the B1 table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 17:18:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/need-to-create-output-of-original-data-and-seasonaly-adjusted/m-p/540506#M3473</guid>
      <dc:creator>TammyJackson</dc:creator>
      <dc:date>2019-03-05T17:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: need to create output of original data and seasonaly adjusted data</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/need-to-create-output-of-original-data-and-seasonaly-adjusted/m-p/540524#M3474</link>
      <description>&lt;P&gt;As Donna suggested, the format of the output statement is&lt;/P&gt;
&lt;P&gt;OUTPUT OUT=&amp;lt;data set name&amp;gt; &amp;lt;tables&amp;gt;;&lt;/P&gt;
&lt;P&gt;I think you omitted the data set name, and "b1" was used as the data set name.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 18:03:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/need-to-create-output-of-original-data-and-seasonaly-adjusted/m-p/540524#M3474</guid>
      <dc:creator>TammyJackson</dc:creator>
      <dc:date>2019-03-05T18:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: need to create output of original data and seasonaly adjusted data</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/need-to-create-output-of-original-data-and-seasonaly-adjusted/m-p/540532#M3475</link>
      <description>&lt;P&gt;Yes, thank you both.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 18:12:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/need-to-create-output-of-original-data-and-seasonaly-adjusted/m-p/540532#M3475</guid>
      <dc:creator>ubshams</dc:creator>
      <dc:date>2019-03-05T18:12:21Z</dc:date>
    </item>
  </channel>
</rss>

