<?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 proc x12 issue time id variable for short dataset in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/proc-x12-issue-time-id-variable-for-short-dataset/m-p/760940#M37107</link>
    <description>&lt;P&gt;I was having problems getting seasonal factors for a short dataset (2018Q3 to 2020Q4), creating synthetic data here to replicate my issue but having problems:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data have;&lt;BR /&gt;input quarter variable1 variable2 variable3;&lt;BR /&gt;cards;&lt;BR /&gt;2018Q3 501 500 95 &lt;BR /&gt;2018Q4 520 502 96 &lt;BR /&gt;2019Q1 510 502 101&lt;BR /&gt;2019Q2 515 400 105&lt;BR /&gt;2019Q3 506 402 106&lt;BR /&gt;2019Q4 530 400 98&lt;BR /&gt;2020Q1 515 399 95&lt;BR /&gt;2020Q2 520 399 95&lt;BR /&gt;2020Q3 510 399 95&lt;BR /&gt;2020Q4 540 399 95&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;proc x12 data=have date= quarter interval=quarter;&lt;BR /&gt;var variable1;&lt;BR /&gt;x11;&lt;BR /&gt;output out = out a1 d10 d11 d12 d13;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I get following error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;ERROR: Time ID variable quarter contains missing values.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2 questions:&lt;/P&gt;
&lt;P&gt;1. How do I get rid of this error?&lt;/P&gt;
&lt;P&gt;2. Can I still get Seasonal factors (i need d10 value from proc x12) for a short time series like this whereby data starts in 2018Q3 and ends in 2020Q4?&lt;/P&gt;
&lt;P&gt;Thanks in Advance!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Aug 2021 15:07:10 GMT</pubDate>
    <dc:creator>ubshams</dc:creator>
    <dc:date>2021-08-11T15:07:10Z</dc:date>
    <item>
      <title>proc x12 issue time id variable for short dataset</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-x12-issue-time-id-variable-for-short-dataset/m-p/760940#M37107</link>
      <description>&lt;P&gt;I was having problems getting seasonal factors for a short dataset (2018Q3 to 2020Q4), creating synthetic data here to replicate my issue but having problems:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data have;&lt;BR /&gt;input quarter variable1 variable2 variable3;&lt;BR /&gt;cards;&lt;BR /&gt;2018Q3 501 500 95 &lt;BR /&gt;2018Q4 520 502 96 &lt;BR /&gt;2019Q1 510 502 101&lt;BR /&gt;2019Q2 515 400 105&lt;BR /&gt;2019Q3 506 402 106&lt;BR /&gt;2019Q4 530 400 98&lt;BR /&gt;2020Q1 515 399 95&lt;BR /&gt;2020Q2 520 399 95&lt;BR /&gt;2020Q3 510 399 95&lt;BR /&gt;2020Q4 540 399 95&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;proc x12 data=have date= quarter interval=quarter;&lt;BR /&gt;var variable1;&lt;BR /&gt;x11;&lt;BR /&gt;output out = out a1 d10 d11 d12 d13;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I get following error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;ERROR: Time ID variable quarter contains missing values.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2 questions:&lt;/P&gt;
&lt;P&gt;1. How do I get rid of this error?&lt;/P&gt;
&lt;P&gt;2. Can I still get Seasonal factors (i need d10 value from proc x12) for a short time series like this whereby data starts in 2018Q3 and ends in 2020Q4?&lt;/P&gt;
&lt;P&gt;Thanks in Advance!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 15:07:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-x12-issue-time-id-variable-for-short-dataset/m-p/760940#M37107</guid>
      <dc:creator>ubshams</dc:creator>
      <dc:date>2021-08-11T15:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: proc x12 issue time id variable for short dataset</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-x12-issue-time-id-variable-for-short-dataset/m-p/760946#M37109</link>
      <description>&lt;P&gt;It appears that you're not reading in your date values properly.&amp;nbsp; SAS wants dates to be stored as SAS dates which are numeric.&amp;nbsp; I think you need to apply an INFORMAT as you read your dates so that they will be stored as SAS dates.&amp;nbsp; Without an INFORMAT, SAS will treat them as character data -- which should produce a Note in the log.&amp;nbsp; Can you post your log from the Data step?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think you should try INFORMAT YYQ6.&amp;nbsp; Like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input quarter : YYQ6. variable1 variable2 variable3;
cards;
2018Q3 501 500 95
2018Q4 520 502 96
2019Q1 510 502 101
2019Q2 515 400 105
2019Q3 506 402 106
2019Q4 530 400 98
2020Q1 515 399 95
2020Q2 520 399 95
2020Q3 510 399 95
2020Q4 540 399 95
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jim&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 15:30:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-x12-issue-time-id-variable-for-short-dataset/m-p/760946#M37109</guid>
      <dc:creator>jimbarbour</dc:creator>
      <dc:date>2021-08-11T15:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: proc x12 issue time id variable for short dataset</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-x12-issue-time-id-variable-for-short-dataset/m-p/760951#M37111</link>
      <description>&lt;P&gt;Thank You the : YYQ6. fixed it!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I get this other error error:&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;&lt;FONT color="#FF0000"&gt;ERROR: Series to be modeled and/or seasonally adjusted must have at least 3 complete years of data.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;ERROR: An error was found in PROC X12 input. Processing skipped for variable variable1.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;Any way to get around this issue if I only have 10 quarters of data (and not the full 12 quarters for the 3 years)?&lt;/FONT&gt;&lt;/P&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>Wed, 11 Aug 2021 15:42:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-x12-issue-time-id-variable-for-short-dataset/m-p/760951#M37111</guid>
      <dc:creator>ubshams</dc:creator>
      <dc:date>2021-08-11T15:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: proc x12 issue time id variable for short dataset</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-x12-issue-time-id-variable-for-short-dataset/m-p/760955#M37113</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/185449"&gt;@ubshams&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thank You the : YYQ6. fixed it!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You're welcome.&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/185449"&gt;@ubshams&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;But I get this other error error:&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;&lt;FONT color="#FF0000"&gt;ERROR: Series to be modeled and/or seasonally adjusted must have at least 3 complete years of data.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;ERROR: An error was found in PROC X12 input. Processing skipped for variable variable1.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;Any way to get around this issue if I only have 10 quarters of data (and not the full 12 quarters for the 3 years)?&lt;/FONT&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Hmmm.&amp;nbsp; Good question.&amp;nbsp; I've not used Proc X12, so I am not sure.&amp;nbsp; What I would do is:&lt;/P&gt;
&lt;P&gt;1.&amp;nbsp; Mark this topic as solved.&lt;/P&gt;
&lt;P&gt;2.&amp;nbsp; Post a new topic specifically asking about what to do for Proc X12 if one only has 10 quarters worth of data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jim&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 15:54:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-x12-issue-time-id-variable-for-short-dataset/m-p/760955#M37113</guid>
      <dc:creator>jimbarbour</dc:creator>
      <dc:date>2021-08-11T15:54:57Z</dc:date>
    </item>
  </channel>
</rss>

