<?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: Convert data from quarterly data to monthly data for multiple companies? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Convert-data-from-quarterly-data-to-monthly-data-for-multiple/m-p/80680#M288386</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since the ID statement cannot handle anything other than a date value and you can't have one date appear more than once (which each date does for each company), how can I repeat the PROC EXPAND process for each company?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 May 2013 21:05:54 GMT</pubDate>
    <dc:creator>mmmark</dc:creator>
    <dc:date>2013-05-20T21:05:54Z</dc:date>
    <item>
      <title>Convert data from quarterly data to monthly data for multiple companies?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-data-from-quarterly-data-to-monthly-data-for-multiple/m-p/80677#M288383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm searching for a way to convert quarterly data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's a sample. I have about 150 companies with quarterly data from 2002-2012.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ticker&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date&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;&amp;nbsp; Price&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;AAA&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2002/03/31&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100&lt;/P&gt;&lt;P&gt;AAA&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2002/06/30&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 125&lt;/P&gt;&lt;P&gt;AAA&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2002/09/30&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100&lt;/P&gt;&lt;P&gt;AAA&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2002/12/31&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100&lt;/P&gt;&lt;P&gt;AAA&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2003/03/31&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 102&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;AAA&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2012/12/31&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 95&lt;/P&gt;&lt;P&gt;ABB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2002/03/31&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100&lt;/P&gt;&lt;P&gt;ABB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2002/06/30&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 125&lt;/P&gt;&lt;P&gt;ABB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2002/09/30&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 110&lt;/P&gt;&lt;P&gt;ABB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2002/12/31&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100&lt;/P&gt;&lt;P&gt;ABB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2003/03/31&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 102&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;ABB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2012/12/31&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 99&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The two problems I'm facing are &lt;/P&gt;&lt;P&gt;1. How to incorporate the ticker, and the fact that we're extrapolating/expanding for mutliple companies.&lt;/P&gt;&lt;P&gt;2. The dates are quarterly end, rather than at the start.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I expand this data to monthly or even daily?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 May 2013 19:46:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-data-from-quarterly-data-to-monthly-data-for-multiple/m-p/80677#M288383</guid>
      <dc:creator>mmmark</dc:creator>
      <dc:date>2013-05-20T19:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: Convert data from quarterly data to monthly data for multiple companies?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-data-from-quarterly-data-to-monthly-data-for-multiple/m-p/80678#M288384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have SAS/ETS licensed, PROC EXPAND does exactly that. - PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 May 2013 20:11:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-data-from-quarterly-data-to-monthly-data-for-multiple/m-p/80678#M288384</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2013-05-20T20:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: Convert data from quarterly data to monthly data for multiple companies?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-data-from-quarterly-data-to-monthly-data-for-multiple/m-p/80679#M288385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;The two problems I'm facing are&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;1. How to incorporate the ticker, and the fact that we're extrapolating/expanding for mutliple companies.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;2. The dates are quarterly end, rather than at the start.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;I have SAS basic and EG.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 May 2013 20:13:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-data-from-quarterly-data-to-monthly-data-for-multiple/m-p/80679#M288385</guid>
      <dc:creator>mmmark</dc:creator>
      <dc:date>2013-05-20T20:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: Convert data from quarterly data to monthly data for multiple companies?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-data-from-quarterly-data-to-monthly-data-for-multiple/m-p/80680#M288386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since the ID statement cannot handle anything other than a date value and you can't have one date appear more than once (which each date does for each company), how can I repeat the PROC EXPAND process for each company?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 May 2013 21:05:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-data-from-quarterly-data-to-monthly-data-for-multiple/m-p/80680#M288386</guid>
      <dc:creator>mmmark</dc:creator>
      <dc:date>2013-05-20T21:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: Convert data from quarterly data to monthly data for multiple companies?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-data-from-quarterly-data-to-monthly-data-for-multiple/m-p/80681#M288387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right now what I can think of is perhaps creating a separate dataset for each company, apply PROC EXPAND, then combine the datasets. This would involve hundreds of datasets however....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 May 2013 21:11:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-data-from-quarterly-data-to-monthly-data-for-multiple/m-p/80681#M288387</guid>
      <dc:creator>mmmark</dc:creator>
      <dc:date>2013-05-20T21:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: Convert data from quarterly data to monthly data for multiple companies?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-data-from-quarterly-data-to-monthly-data-for-multiple/m-p/80682#M288388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just figured it out, it was the simplest thing!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 1.4em 0px 0px; font-family: arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif; color: #000000; background-color: #ffffff;"&gt;A BY statement can be used with PROC EXPAND to obtain separate analyses on observations in groups defined by the BY variables. The input data set must be sorted by the BY variables and be sorted by the ID variable within each BY group.&lt;/P&gt;&lt;P style="margin: 1.4em 0px 0px; font-family: arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif; color: #000000; background-color: #ffffff;"&gt;Use a BY statement when you want to interpolate or convert time series within levels of a cross-sectional variable. For example, suppose you have a data set STATE containing annual estimates of average disposable personal income per capita (DPI) by state and you want quarterly estimates by state. These statements convert the DPI series within each state:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; proc sort data=state;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; by state date;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; proc expand data=state out=stateqtr from=year to=qtr;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; convert dpi;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; by state;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; id date;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 May 2013 21:15:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-data-from-quarterly-data-to-monthly-data-for-multiple/m-p/80682#M288388</guid>
      <dc:creator>mmmark</dc:creator>
      <dc:date>2013-05-20T21:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: Convert data from quarterly data to monthly data for multiple companies?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-data-from-quarterly-data-to-monthly-data-for-multiple/m-p/80683#M288389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great! You should be able to answer your initial request now. - PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 May 2013 23:41:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-data-from-quarterly-data-to-monthly-data-for-multiple/m-p/80683#M288389</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2013-05-20T23:41:28Z</dc:date>
    </item>
  </channel>
</rss>

