<?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: R integration: time series forecast append in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/R-integration-time-series-forecast-append/m-p/1443614#M14445</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can i have your sample for this? im facing difficulties of mapping back the appended value back with dimension.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Aug 2017 08:59:43 GMT</pubDate>
    <dc:creator>yuankai0102</dc:creator>
    <dc:date>2017-08-28T08:59:43Z</dc:date>
    <item>
      <title>R integration: time series forecast append</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/R-integration-time-series-forecast-append/m-p/1443609#M14440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to append a forecasted time series to a line chart of closing values for a stock. Qlik Sense gives me&amp;nbsp; 'erroe: client specified an invalid argument'. I don't understand what I'm getting wrong. Many thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;R.ScriptEval('library(forecast);data&amp;lt;-ts(na.omit(q$Variable1),frequency=1);fit&amp;lt;-auto.arima(data); res&amp;lt;-forecast(fit, level=0.95, h=q$vForecastPeriods); n &amp;lt;- length(q$Variable1); fore &amp;lt;- append(q$Variable1[(q$vForecastPeriods - 1):n],res$mean,after= n - q$vForecastPeriods); $fore;', Sum(Close) as Variable1, vForecastPeriods)&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Nov 2024 09:23:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/R-integration-time-series-forecast-append/m-p/1443609#M14440</guid>
      <dc:creator />
      <dc:date>2024-11-16T09:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: R integration: time series forecast append</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/R-integration-time-series-forecast-append/m-p/1443610#M14441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently, the R extension expects the same number of rows as a result. So you will need to add empty rows for the forecast values into the data that you send to R.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bas.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Aug 2017 11:20:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/R-integration-time-series-forecast-append/m-p/1443610#M14441</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-22T11:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: R integration: time series forecast append</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/R-integration-time-series-forecast-append/m-p/1443611#M14442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the advice. I thought that's exactly what I'm doing above: sending in TS to R with its original length and retrieving TS - ForecastPeriods + Forecasts. Further thoughts are appreciated. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Aug 2017 12:39:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/R-integration-time-series-forecast-append/m-p/1443611#M14442</guid>
      <dc:creator />
      <dc:date>2017-08-22T12:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: R integration: time series forecast append</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/R-integration-time-series-forecast-append/m-p/1443612#M14443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, you're using a variable in your expression, you may want to try:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;R.ScriptEval('library(forecast);'&amp;amp;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'data&amp;lt;-ts(na.omit(q$Variable1),frequency=1);'&amp;amp;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;'fit&amp;lt;-auto.arima(data);'&amp;amp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'res&amp;lt;-forecast(fit, level=0.95, h=q$vForecastPeriods); '&amp;amp;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'n &amp;lt;- length(q$Variable1); '&amp;amp;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'fore &amp;lt;- append(q$Variable1[(q$vForecastPeriods - 1):n],res$mean,after= n - q$vForecastPeriods); '&amp;amp;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '$fore;', &lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(Close) as Variable1, &lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(vForecastPeriods) as&amp;nbsp; &lt;/EM&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;vForecastPeriods )&lt;/EM&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;Second, to help you in troubleshooting check the logs for SSE2Rserve, this should give you an indication of what is wrong in the script.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Bas&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2017 06:01:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/R-integration-time-series-forecast-append/m-p/1443612#M14443</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-23T06:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: R integration: time series forecast append</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/R-integration-time-series-forecast-append/m-p/1443613#M14444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks. It was solved by&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;$(vForecastPeriods) as&amp;nbsp; &lt;/EM&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;vForecastPeriods&lt;/EM&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;EM&gt;However, I received error with $fore. I just took that $ out of your code and it worked like a charm.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;EM&gt;Thanks again!&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;EM&gt;PS. Any ideas on how to integrate a fan chart are welcome.&amp;nbsp; &lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2017 14:04:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/R-integration-time-series-forecast-append/m-p/1443613#M14444</guid>
      <dc:creator />
      <dc:date>2017-08-23T14:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: R integration: time series forecast append</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/R-integration-time-series-forecast-append/m-p/1443614#M14445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can i have your sample for this? im facing difficulties of mapping back the appended value back with dimension.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Aug 2017 08:59:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/R-integration-time-series-forecast-append/m-p/1443614#M14445</guid>
      <dc:creator>yuankai0102</dc:creator>
      <dc:date>2017-08-28T08:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: R integration: time series forecast append</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/R-integration-time-series-forecast-append/m-p/1574391#M14446</link>
      <description>&lt;P&gt;Hi Bas,&lt;/P&gt;&lt;P&gt;I am a beginner in Qlik and R.&lt;/P&gt;&lt;P&gt;As you mentioned, that we need&amp;nbsp;&lt;SPAN&gt;need to add empty rows for the forecast values that is sent to R, can you please let me know how can that be done ? And wont it hamper the other visualizations in Qlik ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Namrata&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2019 11:12:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/R-integration-time-series-forecast-append/m-p/1574391#M14446</guid>
      <dc:creator>namrata_nm</dc:creator>
      <dc:date>2019-04-29T11:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: R integration: time series forecast append</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/R-integration-time-series-forecast-append/m-p/1737316#M14447</link>
      <description>&lt;P&gt;I have a similar issue. The forecast period is plotted at the end of the data, but somewhere in the middle.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2020 10:03:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/R-integration-time-series-forecast-append/m-p/1737316#M14447</guid>
      <dc:creator>otwtm</dc:creator>
      <dc:date>2020-08-20T10:03:24Z</dc:date>
    </item>
  </channel>
</rss>

