<?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: Linear interpolation for annual data in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Linear-interpolation-for-annual-data/m-p/854912#M337907</link>
    <description>Thank you!</description>
    <pubDate>Fri, 20 Jan 2023 21:07:57 GMT</pubDate>
    <dc:creator>SASdevAnneMarie</dc:creator>
    <dc:date>2023-01-20T21:07:57Z</dc:date>
    <item>
      <title>Linear interpolation for annual data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Linear-interpolation-for-annual-data/m-p/854334#M337631</link>
      <description>&lt;P&gt;Hello Experts,&lt;/P&gt;
&lt;P&gt;I have a code on R&amp;nbsp; ( I do not code on R):&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;#if(noms == "Real Estate")
if(noms == Qimmo)
{
interpolation &amp;lt;- c()
date_affichage &amp;lt;- c()

for(annee in 1:(dim(tableau)[1]-1))
{
date_interpolation &amp;lt;- format(seq(as.Date(tableau$Date[annee], "%d/%m/%Y"), as.Date(tableau$Date[annee+1], "%d/%m/%Y"), by="days"), format = "%d/%m/%Y")
interpolation &amp;lt;- c(interpolation, approx(x = annee:(annee+1), y = tableau$Valeur[annee:(annee+1)], n=length(date_interpolation))$y )
date_affichage &amp;lt;- c(date_affichage, date_interpolation)
}

tableau &amp;lt;- data.frame(Date = unique(date_affichage), Valeur = unique(interpolation))
}&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;Do you know, please, the equivalent of this function on SAS please ? On Internet I have a lot of results, but I don't know which one is correct.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have joined the data : I would like to have the values for all days in the year.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your help !&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2023 14:37:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Linear-interpolation-for-annual-data/m-p/854334#M337631</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2023-01-18T14:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: Linear interpolation for annual data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Linear-interpolation-for-annual-data/m-p/854335#M337632</link>
      <description>&lt;P&gt;I don't know R either, and all you say to point us in the right direction is these few words in the title: "Linear interpolation for annual data". You can follow these instructions:&amp;nbsp;&lt;A href="https://support.sas.com/kb/24/560.html" target="_blank"&gt;https://support.sas.com/kb/24/560.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2023 14:30:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Linear-interpolation-for-annual-data/m-p/854335#M337632</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-01-18T14:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: Linear interpolation for annual data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Linear-interpolation-for-annual-data/m-p/854338#M337633</link>
      <description>Thank you,&lt;BR /&gt;My prolem is that I don't know how to do the linear interpolation for annual data. I have joined the data to my e-mail.</description>
      <pubDate>Wed, 18 Jan 2023 14:35:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Linear-interpolation-for-annual-data/m-p/854338#M337633</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2023-01-18T14:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: Linear interpolation for annual data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Linear-interpolation-for-annual-data/m-p/854339#M337634</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/286185"&gt;@SASdevAnneMarie&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;BR /&gt;My prolem is that I don't know how to do the linear interpolation for annual data. I have joined the data to my e-mail.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I guess I don't understand why you say that you don't know how ... the link I gave offers actual SAS code to do linear interpolation.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2023 14:37:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Linear-interpolation-for-annual-data/m-p/854339#M337634</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-01-18T14:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: Linear interpolation for annual data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Linear-interpolation-for-annual-data/m-p/854912#M337907</link>
      <description>Thank you!</description>
      <pubDate>Fri, 20 Jan 2023 21:07:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Linear-interpolation-for-annual-data/m-p/854912#M337907</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2023-01-20T21:07:57Z</dc:date>
    </item>
  </channel>
</rss>

