<?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: Interpolating Values from existing data set and create new data set in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Interpolating-Values-from-existing-data-set-and-create-new-data/m-p/583330#M13955</link>
    <description>&lt;P&gt;Didn't get a ton of time to play with this, will check in again later.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*add missing quarters;
proc timeseries data=have out=want1;
id date interval=qtr start='01Jan2001'd end='31Dec2001'd;
var value;
run;

*adds missing months;
proc timeseries data=want1 out=want2;
id date interval=month start='01Jan2001'd end='31Dec2001'd;
var value;
run;

*interpolation;
proc expand data=want2 out=want3;
id date;
convert value = new_value / transformout = (seqadd(1));
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/281569"&gt;@ezboral&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Yes, I do have SAS ETS.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Aug 2019 20:11:33 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2019-08-22T20:11:33Z</dc:date>
    <item>
      <title>Interpolating Values from existing data set and create new data set</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Interpolating-Values-from-existing-data-set-and-create-new-data/m-p/582133#M13786</link>
      <description>&lt;P&gt;I have the following table called QtrPriceData:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Region&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Year&amp;nbsp; &amp;nbsp; &amp;nbsp; Qtr&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Value&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;North&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2001&amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 100&lt;/P&gt;&lt;P&gt;North&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2001&amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 103&lt;/P&gt;&lt;P&gt;North&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2001&amp;nbsp; &amp;nbsp; &amp;nbsp; 3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 106&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to take that data set&amp;nbsp; called MonthlyPriceData and create a new data set with monthly data with the following output:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Region&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Year&amp;nbsp; &amp;nbsp; &amp;nbsp; Qtr&amp;nbsp; &amp;nbsp; Month&amp;nbsp; &amp;nbsp;Value&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;North&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2001&amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 100&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF9900"&gt;North&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2001&amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;101&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF9900"&gt;North&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2001&amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;102&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;North&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2001&amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;103&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF9900"&gt;North&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2001&amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;104&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF9900"&gt;North&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2001&amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;105&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;North&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2001&amp;nbsp; &amp;nbsp; &amp;nbsp; 3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;106&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Essentially, I'm taking a quarterly data set and interpolating monthly values, which are in orange.&amp;nbsp; This requires adding a monthly column, and then adding two rows for each quarter, and then finally calculating the monthly value (just taking the difference between each quarter and dividing by 3 and adding that value to the last period).&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;I appreciate any suggestions.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 15:33:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Interpolating-Values-from-existing-data-set-and-create-new-data/m-p/582133#M13786</guid>
      <dc:creator>ezboral</dc:creator>
      <dc:date>2019-08-19T15:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: Interpolating Values from existing data set and create new data set</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Interpolating-Values-from-existing-data-set-and-create-new-data/m-p/582139#M13788</link>
      <description>&lt;P&gt;Do you have a license for SAS ETS? Or are you using SAS UE? If so, PROC TIMESERIES can work for you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data ibm;
	set sashelp.stocks;
	where stock='IBM';

	if month(date)=7 then
		delete;
run;

proc sort data=ibm;
	by date;
run;

/*2*/
proc timeseries data=ibm out=ibm_no_missing;
	id date interval=month start='01Aug1986'd end='01Dec2005'd;
	var open;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;A href="https://gist.github.com/statgeek/07a3708dee1225ceb9d4aa75daab2c52" target="_blank"&gt;https://gist.github.com/statgeek/07a3708dee1225ceb9d4aa75daab2c52&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 15:46:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Interpolating-Values-from-existing-data-set-and-create-new-data/m-p/582139#M13788</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-08-19T15:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: Interpolating Values from existing data set and create new data set</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Interpolating-Values-from-existing-data-set-and-create-new-data/m-p/582145#M13789</link>
      <description>&lt;P&gt;I have SAS Enterprise Guide&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 15:51:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Interpolating-Values-from-existing-data-set-and-create-new-data/m-p/582145#M13789</guid>
      <dc:creator>ezboral</dc:creator>
      <dc:date>2019-08-19T15:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: Interpolating Values from existing data set and create new data set</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Interpolating-Values-from-existing-data-set-and-create-new-data/m-p/582152#M13792</link>
      <description>&lt;P&gt;SAS ETS is a module, you may or may not have in EG.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can check what you have licensed in SAS using:&lt;BR /&gt;proc setinit; run;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;And what's installed on your system using:&lt;BR /&gt;proc product_status; run;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;The output will be in the log.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If SAS/ETS is listed, you have it. Or you can try just running the code in my initial post.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 16:03:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Interpolating-Values-from-existing-data-set-and-create-new-data/m-p/582152#M13792</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-08-19T16:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: Interpolating Values from existing data set and create new data set</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Interpolating-Values-from-existing-data-set-and-create-new-data/m-p/582170#M13799</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input Region  $     Year      Qtr       Value;
cards;
North          2001      1          100
North          2001      2          103
North          2001      3          106
;

data want;
 do until(last.year);
   set have;
   by region year;
   if not last.year then  do month=1 to 3;
   value=ifn(month=1,value,sum(value,1));
    output;
   end;
   else do;
   month=1;
   output;
 end;
end;
run;

  &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 19 Aug 2019 17:41:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Interpolating-Values-from-existing-data-set-and-create-new-data/m-p/582170#M13799</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-08-19T17:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: Interpolating Values from existing data set and create new data set</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Interpolating-Values-from-existing-data-set-and-create-new-data/m-p/582495#M13849</link>
      <description>&lt;P&gt;Do you &lt;STRONG&gt;ever&lt;/STRONG&gt; have a gap in the year/qtr combinations within the data for a region?&lt;/P&gt;
&lt;P&gt;Something like this:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Region&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Year&amp;nbsp; &amp;nbsp; &amp;nbsp; Qtr&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Value&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;North&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2003&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2&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;North&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2004&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 103&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you want to limit decimals for interpolated values for any reason?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2019 17:17:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Interpolating-Values-from-existing-data-set-and-create-new-data/m-p/582495#M13849</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-08-20T17:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: Interpolating Values from existing data set and create new data set</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Interpolating-Values-from-existing-data-set-and-create-new-data/m-p/582527#M13854</link>
      <description>&lt;P&gt;No gap in the year/qt combos.&amp;nbsp; No need to limit decimals either.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2019 18:14:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Interpolating-Values-from-existing-data-set-and-create-new-data/m-p/582527#M13854</guid>
      <dc:creator>ezboral</dc:creator>
      <dc:date>2019-08-20T18:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: Interpolating Values from existing data set and create new data set</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Interpolating-Values-from-existing-data-set-and-create-new-data/m-p/583315#M13949</link>
      <description>&lt;P&gt;So I've made some progress on this problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following code helped me add a monthly column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Monthly;
set Quarterly;
if qtr = 1 then do;
	do month = 1 to 3;
	output;
	end;
end;
if qtr = 2 then do;
	do month = 4 to 6;
	output;
	end;
end;
if qtr = 3 then do;
	do month = 7 to 9;
	output;
	end;
end;
if qtr = 4 then do;
	do month = 10 to 12;
	output;
	end;
end;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I have my table in the desired structure below, but the values are duplicates of the beginning quarterly value.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Region&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Year&amp;nbsp; &amp;nbsp; &amp;nbsp; Qtr&amp;nbsp; &amp;nbsp; Month&amp;nbsp; &amp;nbsp;Value&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;North&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2001&amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 100&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF9900"&gt;North&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2001&amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;100&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF9900"&gt;North&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2001&amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;100&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;North&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2001&amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;103&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF9900"&gt;North&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2001&amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;103&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF9900"&gt;North&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2001&amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;103&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;North&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2001&amp;nbsp; &amp;nbsp; &amp;nbsp; 3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;106&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to take the difference between month 1 in a given year and month 1 in the prior year, divide the total by three, and add that amount to month 2, then month 3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example in the table below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Want&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Region&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Year&amp;nbsp; &amp;nbsp; &amp;nbsp; Qtr&amp;nbsp; &amp;nbsp; Month&amp;nbsp; &amp;nbsp;Value&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;North&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2001&amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 100&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF9900"&gt;North&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2001&amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;101&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF9900"&gt;North&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2001&amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;102&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;North&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2001&amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;103&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF9900"&gt;North&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2001&amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;104&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF9900"&gt;North&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2001&amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;105&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;North&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2001&amp;nbsp; &amp;nbsp; &amp;nbsp; 3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;106&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2019 19:32:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Interpolating-Values-from-existing-data-set-and-create-new-data/m-p/583315#M13949</guid>
      <dc:creator>ezboral</dc:creator>
      <dc:date>2019-08-22T19:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: Interpolating Values from existing data set and create new data set</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Interpolating-Values-from-existing-data-set-and-create-new-data/m-p/583320#M13952</link>
      <description>Did you ever figure out if you have SAS ETS? Proc TIMESERIES and EXPAND are designed to do this very easily though of course you can always hardcode it or do it manually.</description>
      <pubDate>Thu, 22 Aug 2019 19:40:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Interpolating-Values-from-existing-data-set-and-create-new-data/m-p/583320#M13952</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-08-22T19:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: Interpolating Values from existing data set and create new data set</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Interpolating-Values-from-existing-data-set-and-create-new-data/m-p/583321#M13953</link>
      <description>&lt;P&gt;Yes, I do have SAS ETS.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2019 19:42:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Interpolating-Values-from-existing-data-set-and-create-new-data/m-p/583321#M13953</guid>
      <dc:creator>ezboral</dc:creator>
      <dc:date>2019-08-22T19:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: Interpolating Values from existing data set and create new data set</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Interpolating-Values-from-existing-data-set-and-create-new-data/m-p/583327#M13954</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/281569"&gt;@ezboral&lt;/a&gt;&amp;nbsp; &amp;nbsp;Nice that you do have ETS. Reeza can guide you.&amp;nbsp; May i ask whether you tried the code I offered ?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2019 20:00:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Interpolating-Values-from-existing-data-set-and-create-new-data/m-p/583327#M13954</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-08-22T20:00:28Z</dc:date>
    </item>
    <item>
      <title>Re: Interpolating Values from existing data set and create new data set</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Interpolating-Values-from-existing-data-set-and-create-new-data/m-p/583330#M13955</link>
      <description>&lt;P&gt;Didn't get a ton of time to play with this, will check in again later.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*add missing quarters;
proc timeseries data=have out=want1;
id date interval=qtr start='01Jan2001'd end='31Dec2001'd;
var value;
run;

*adds missing months;
proc timeseries data=want1 out=want2;
id date interval=month start='01Jan2001'd end='31Dec2001'd;
var value;
run;

*interpolation;
proc expand data=want2 out=want3;
id date;
convert value = new_value / transformout = (seqadd(1));
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/281569"&gt;@ezboral&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Yes, I do have SAS ETS.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2019 20:11:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Interpolating-Values-from-existing-data-set-and-create-new-data/m-p/583330#M13955</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-08-22T20:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: Interpolating Values from existing data set and create new data set</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Interpolating-Values-from-existing-data-set-and-create-new-data/m-p/583339#M13959</link>
      <description>&lt;P&gt;It's actually something new that you don't want month going from 1 to 3 each time.&amp;nbsp; Your new code has it going from 1 to 12.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's a way you can do this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data monthly;
set quarterly end=done;
month = qtr * 3 - 2;
output;
if done=0;
nextrec = _n_ + 1;
set quarterly point=nextrec (keep=value rename=(value=next_value));
increment = (next_value - value) / 3;
do month = month + 1 to month + 2;
   value = value + increment;
   output;
end;
drop nextrec increment;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This variation has month taking on values from 1 to 12.&amp;nbsp; If you really want it to go from 1 to 3 only, replace this statement:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;month = qtr * 3 - 2;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just use this instead:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;month = 1;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2019 21:23:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Interpolating-Values-from-existing-data-set-and-create-new-data/m-p/583339#M13959</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-08-22T21:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: Interpolating Values from existing data set and create new data set</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Interpolating-Values-from-existing-data-set-and-create-new-data/m-p/583598#M13990</link>
      <description>&lt;P&gt;Thanks everyone, I really appreciate the help.&amp;nbsp; I've not been able to make any of the queries above work in the way I intended.&amp;nbsp; However, I have made progress.&amp;nbsp; I've managed to get to the following place.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Region&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Year&amp;nbsp; &amp;nbsp; &amp;nbsp; Qtr&amp;nbsp; &amp;nbsp; Month&amp;nbsp; &amp;nbsp;Value&amp;nbsp; Date&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;North&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2001&amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 100&amp;nbsp; &amp;nbsp; &amp;nbsp; 1/1/2001&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF9900"&gt;North&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2001&amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;100&amp;nbsp; &amp;nbsp; &amp;nbsp; 2/1/2001&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF9900"&gt;North&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2001&amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;100&amp;nbsp; &amp;nbsp; &amp;nbsp; 3/1/2001&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;North&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2001&amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;103&amp;nbsp; &amp;nbsp; &amp;nbsp; 4/1/2001&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF9900"&gt;North&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2001&amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;103&amp;nbsp; &amp;nbsp; &amp;nbsp; 5/1/2001&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF9900"&gt;North&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2001&amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;103&amp;nbsp; &amp;nbsp; &amp;nbsp; 6/1/2001&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;North&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2001&amp;nbsp; &amp;nbsp; &amp;nbsp; 3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;106&amp;nbsp; &amp;nbsp; &amp;nbsp; 7/1/2001&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;If this was my starting point, my goal is simply to take value column and change the orange values to the equidistant value from month to month every quarter.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;proc expand was mentioned as a possible solution.&amp;nbsp; Does anyone know how that might work?&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2019 20:26:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Interpolating-Values-from-existing-data-set-and-create-new-data/m-p/583598#M13990</guid>
      <dc:creator>ezboral</dc:creator>
      <dc:date>2019-08-23T20:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: Interpolating Values from existing data set and create new data set</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Interpolating-Values-from-existing-data-set-and-create-new-data/m-p/583605#M13991</link>
      <description>&lt;P&gt;There was a proc expand in the code above, did you run and try that solution on your data? What exactly did you get?&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/281569"&gt;@ezboral&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thanks everyone, I really appreciate the help.&amp;nbsp; I've not been able to make any of the queries above work in the way I intended.&amp;nbsp; However, I have made progress.&amp;nbsp; I've managed to get to the following place.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Region&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Year&amp;nbsp; &amp;nbsp; &amp;nbsp; Qtr&amp;nbsp; &amp;nbsp; Month&amp;nbsp; &amp;nbsp;Value&amp;nbsp; Date&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;North&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2001&amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 100&amp;nbsp; &amp;nbsp; &amp;nbsp; 1/1/2001&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF9900"&gt;North&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2001&amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;100&amp;nbsp; &amp;nbsp; &amp;nbsp; 2/1/2001&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF9900"&gt;North&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2001&amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;100&amp;nbsp; &amp;nbsp; &amp;nbsp; 3/1/2001&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;North&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2001&amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;103&amp;nbsp; &amp;nbsp; &amp;nbsp; 4/1/2001&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF9900"&gt;North&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2001&amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;103&amp;nbsp; &amp;nbsp; &amp;nbsp; 5/1/2001&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF9900"&gt;North&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2001&amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;103&amp;nbsp; &amp;nbsp; &amp;nbsp; 6/1/2001&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;North&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2001&amp;nbsp; &amp;nbsp; &amp;nbsp; 3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;106&amp;nbsp; &amp;nbsp; &amp;nbsp; 7/1/2001&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;If this was my starting point, my goal is simply to take value column and change the orange values to the equidistant value from month to month every quarter.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;proc expand was mentioned as a possible solution.&amp;nbsp; Does anyone know how that might work?&lt;/FONT&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2019 20:52:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Interpolating-Values-from-existing-data-set-and-create-new-data/m-p/583605#M13991</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-08-23T20:52:53Z</dc:date>
    </item>
  </channel>
</rss>

