<?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: How to make time series graph in SAS Guide in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-time-series-graph-in-SAS-Guide/m-p/561019#M156988</link>
    <description>&lt;P&gt;Here are two ways:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data HAVE;
  do X=1 to 200;
    A+ranuni(1)-.5;
    B+ranuni(1)-.5;
    output; 
  end;
run;
            
proc sgplot data=HAVE;
  series X=X Y=A; 
  series X=X Y=B;
  refline 0;  
run; 

symbol i=j;
proc gplot data=HAVE;
  plot (A B)*X / overlay vref=0;
  run; 
quit;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture .PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/29716i34A6DCBFFF00EEEC/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture .PNG" alt="Capture .PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/29717iE977D05AB53EEB21/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Please look up the different options available for the different procedures to tweak the appearance if the&amp;nbsp;default results above are not suitable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 23 May 2019 02:15:24 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2019-05-23T02:15:24Z</dc:date>
    <item>
      <title>How to make time series graph in SAS Guide</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-time-series-graph-in-SAS-Guide/m-p/561012#M156986</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am making Time series Arima model in SAS Guide. I have two columns and need to make a line graph. Two variables should be in the horizontal axis&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the line graph which I manually made in excel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to make it in SAS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GRAPH.JPG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/29712iACF79B12E20AD017/image-size/large?v=v2&amp;amp;px=999" role="button" title="GRAPH.JPG" alt="GRAPH.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is my two variables&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Variables.JPG" style="width: 102px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/29713i1F5FE0A964B54541/image-size/small?v=v2&amp;amp;px=200" role="button" title="Variables.JPG" alt="Variables.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please advise&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2019 01:43:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-make-time-series-graph-in-SAS-Guide/m-p/561012#M156986</guid>
      <dc:creator>sdhilip</dc:creator>
      <dc:date>2019-05-23T01:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to make time series graph in SAS Guide</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-time-series-graph-in-SAS-Guide/m-p/561019#M156988</link>
      <description>&lt;P&gt;Here are two ways:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data HAVE;
  do X=1 to 200;
    A+ranuni(1)-.5;
    B+ranuni(1)-.5;
    output; 
  end;
run;
            
proc sgplot data=HAVE;
  series X=X Y=A; 
  series X=X Y=B;
  refline 0;  
run; 

symbol i=j;
proc gplot data=HAVE;
  plot (A B)*X / overlay vref=0;
  run; 
quit;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture .PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/29716i34A6DCBFFF00EEEC/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture .PNG" alt="Capture .PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/29717iE977D05AB53EEB21/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Please look up the different options available for the different procedures to tweak the appearance if the&amp;nbsp;default results above are not suitable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2019 02:15:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-make-time-series-graph-in-SAS-Guide/m-p/561019#M156988</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2019-05-23T02:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to make time series graph in SAS Guide</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-time-series-graph-in-SAS-Guide/m-p/561262#M157090</link>
      <description>&lt;P&gt;Hi Chris&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your solution.&amp;nbsp; I tried it's not working for me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am running the ARIMA model and my output data has 5 columns. Among these 5, I have two columns NYSE, FORECAST which I need to do time series plot.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried to allocate these two columns in the graph but not successful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any suggestions? I think I am not doing right or may not understand the subject.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Dhilip&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2019 00:41:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-make-time-series-graph-in-SAS-Guide/m-p/561262#M157090</guid>
      <dc:creator>sdhilip</dc:creator>
      <dc:date>2019-05-24T00:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to make time series graph in SAS Guide</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-time-series-graph-in-SAS-Guide/m-p/561275#M157099</link>
      <description>&lt;P&gt;Not too sure what's unclear in my post, or even less sure of what you tried.&lt;/P&gt;
&lt;P&gt;What about:&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt; &lt;SPAN class="token procnames"&gt;plot&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;(&lt;SPAN&gt;NYSE FORECAST&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;*&lt;/SPAN&gt;TIME &lt;SPAN class="token operator"&gt;/&lt;/SPAN&gt; overlay vref&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;0&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2019 01:50:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-make-time-series-graph-in-SAS-Guide/m-p/561275#M157099</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2019-05-24T01:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to make time series graph in SAS Guide</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-time-series-graph-in-SAS-Guide/m-p/561280#M157103</link>
      <description>&lt;P&gt;Hi Chris&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is my mistake.&amp;nbsp; I'm unable to get correct coding.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am running the below ARIMA model&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* Creating ARIMA Model for forecast data */
proc arima data=tsforecast; 
identify var=nyse;
estimate p=1 q=1 ; 
forecast out=forecasted2;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I am getting the below output data and stored in forecasted2.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ss.JPG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/29748i5E3B05A7942992D8/image-size/large?v=v2&amp;amp;px=999" role="button" title="ss.JPG" alt="ss.JPG" /&gt;&lt;/span&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;
&lt;P&gt;Now I am confused how to take the first two coulmn NYSE forecast and apply into your coding for getting time series plot. Sorry I am not clear in my earlier post.&amp;nbsp; You have created new data "have" and applied into the SG plot. Could you please guide me how to this with my above output data? Sorry for the inconvinience.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Fri, 24 May 2019 02:21:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-make-time-series-graph-in-SAS-Guide/m-p/561280#M157103</guid>
      <dc:creator>sdhilip</dc:creator>
      <dc:date>2019-05-24T02:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to make time series graph in SAS Guide</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-time-series-graph-in-SAS-Guide/m-p/561283#M157104</link>
      <description>&lt;P&gt;Where is your time variable?&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2019 02:34:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-make-time-series-graph-in-SAS-Guide/m-p/561283#M157104</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2019-05-24T02:34:42Z</dc:date>
    </item>
  </channel>
</rss>

