<?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>article QlikView and R Integration for Predictive Analytics Example in Member Articles</title>
    <link>https://community.qlik.com/t5/Member-Articles/QlikView-and-R-Integration-for-Predictive-Analytics-Example/ta-p/1497163</link>
    <description>&lt;P&gt;If you have never thought about integrating predictive analytics and QlikView, may this article pique your interest on the topic.&amp;nbsp; If you have thought about the potential, but do not know how to get started, may this be the motivation to start your journey.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This demo example illustrates the art of the possible around the interoperability of the R statistics engine and QlikView 11 for enabling predictive algorithms within QlikView today.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;R (&lt;A href="http://www.r-project.org/" target="_blank"&gt;http://www.r-project.org/&lt;/A&gt;) is a free software environment for statistical computing and graphics, which supports predictive modeling and scoring.&amp;nbsp; The example also introduces Rattle (Rattle: A Graphical User Interface for Data Mining using R -- &lt;A href="http://rattle.togaware.com/" target="_blank"&gt;http://rattle.togaware.com/&lt;/A&gt;).&amp;nbsp; Rattle was used to create the predictive model and generate the R code implemented within the example QlikView application.&amp;nbsp; The use of Rattle is not detailed here.&amp;nbsp; It is left up to you to explore.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The example assumes you understand R and how to create predictive models in R and how scoring works in R.&amp;nbsp; If you understand how to do those things in R and you know how QlikView works, this example should give you an idea of how:&lt;/P&gt;
&lt;OL style="list-style-type: decimal;"&gt;
&lt;LI&gt;you could implement a compelling QlikView application for discovering trends in data as you have become used to with QlikView&lt;/LI&gt;
&lt;LI&gt;while adding the ability to predict outcomes using a proven, trained scoring model you have built in R&lt;/LI&gt;
&lt;LI&gt;and while showing actionable predicted outcomes at the point of decision&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;-- all without the end user having to leave QlikView.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As in the previous example posted by Elif Tutuk, "Integrating QV with R example kit.zip" (&lt;A href="https://community.qlik.com/docs/DOC-2975" target="_blank"&gt;http://community.qlik.com/docs/DOC-2975&lt;/A&gt;), the example utilizes statconnDCOM.&amp;nbsp; A slightly different approach in this example overcomes a break in functionality introduced into that earlier example by the changing in the behavior of one of the COM API methods in the most recent releases of statconnDCOM.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The integration is done using QlikView's built-in VBScript support to interoperate with the DCOM-based API.&amp;nbsp; This is just one way to integrate with R.&amp;nbsp; With a little research you can discover other potential opportunities for R integration (e.g., OpenCPU).&amp;nbsp; Also, note that R is just one such example of a statistical engine being integrated with QlikView.&amp;nbsp; Other solutions, such as commercially available statistical engines or predictive scoring engines may also be integrated in similar ways.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To get started with this example, save the attached file, QlikView-R_Predictive_Demo.zip, to your system.&amp;nbsp; Open the zip file, and copy the enclosed folder (QlikView-R_Predictive_Demo) to a location of your choice.&amp;nbsp; The location is not important as the example is portable and has no dependency on being placed in a particular folder on your system. Now navigate into the folder you just extracted and find the document named “Qlikview-R Integration Demo 20170310.pdf”.&amp;nbsp; Open the document and follow the instructions step-by-step.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;UPDATE (May 7, 2014):&amp;nbsp; I updated the installation document (Qlikview-R Integration Demo 20140421.pdf) to eliminate the RAndFriends installer as it has been unavailable for some time.&amp;nbsp; This edition of the document references R 3.1.0.&amp;nbsp; Hopefully the instructions will continue to be a good guide for subsequent versions as well.&amp;nbsp; I will continue to monitor for changes in R, statconnDCOM and other R components which could effect how the demo application works going forward.&amp;nbsp; The example QlikView application itself remains unchanged. It is a Personal Edition version, so you should be able to explore it with a licensed QlikView Desktop or the Personal Edition.&amp;nbsp; Thank you for your continued feedback on this demo.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;UPDATE (September 21, 2015):&amp;nbsp; &lt;SPAN&gt;Everyone who has been seeing the message &lt;/SPAN&gt;&lt;SPAN&gt;"The license that is embedded in this document is not valid":&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;I attached an updated version of &lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;QlikView-R_Predictive_Demo.zip&lt;/SPAN&gt;‌.&amp;nbsp; Ensure you overwrite the old QVW with the new one in this package.&amp;nbsp; That is the only change.&amp;nbsp; Please forgive this looooong overdue update.&amp;nbsp; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/blush.png" border="0" /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;UPDATE (October 9, 2016):&amp;nbsp; Updated the embedded license to work with QlikView Desktop Personal Edition.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;UPDATE (February 2, 2017):&amp;nbsp; Updated the embedded license to work with QlikView Desktop Personal Edition.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;UPDATE (March 10. 2017):&amp;nbsp; A dependency for this particular example is statconnDCOM from the team at autstat (&lt;A href="http://www.autstat.com/" target="_blank"&gt;http://www.autstat.com/&lt;/A&gt;).&amp;nbsp; If you wish to utilize statconnDCOM, you will need to contact autstat directly and purchase a license or request an evaluation license for testing.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Feb 2023 11:18:53 GMT</pubDate>
    <dc:creator>Brian_Bauer</dc:creator>
    <dc:date>2023-02-08T11:18:53Z</dc:date>
    <item>
      <title>QlikView and R Integration for Predictive Analytics Example</title>
      <link>https://community.qlik.com/t5/Member-Articles/QlikView-and-R-Integration-for-Predictive-Analytics-Example/ta-p/1497163</link>
      <description>&lt;P&gt;If you have never thought about integrating predictive analytics and QlikView, may this article pique your interest on the topic.&amp;nbsp; If you have thought about the potential, but do not know how to get started, may this be the motivation to start your journey.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This demo example illustrates the art of the possible around the interoperability of the R statistics engine and QlikView 11 for enabling predictive algorithms within QlikView today.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;R (&lt;A href="http://www.r-project.org/" target="_blank"&gt;http://www.r-project.org/&lt;/A&gt;) is a free software environment for statistical computing and graphics, which supports predictive modeling and scoring.&amp;nbsp; The example also introduces Rattle (Rattle: A Graphical User Interface for Data Mining using R -- &lt;A href="http://rattle.togaware.com/" target="_blank"&gt;http://rattle.togaware.com/&lt;/A&gt;).&amp;nbsp; Rattle was used to create the predictive model and generate the R code implemented within the example QlikView application.&amp;nbsp; The use of Rattle is not detailed here.&amp;nbsp; It is left up to you to explore.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The example assumes you understand R and how to create predictive models in R and how scoring works in R.&amp;nbsp; If you understand how to do those things in R and you know how QlikView works, this example should give you an idea of how:&lt;/P&gt;
&lt;OL style="list-style-type: decimal;"&gt;
&lt;LI&gt;you could implement a compelling QlikView application for discovering trends in data as you have become used to with QlikView&lt;/LI&gt;
&lt;LI&gt;while adding the ability to predict outcomes using a proven, trained scoring model you have built in R&lt;/LI&gt;
&lt;LI&gt;and while showing actionable predicted outcomes at the point of decision&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;-- all without the end user having to leave QlikView.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As in the previous example posted by Elif Tutuk, "Integrating QV with R example kit.zip" (&lt;A href="https://community.qlik.com/docs/DOC-2975" target="_blank"&gt;http://community.qlik.com/docs/DOC-2975&lt;/A&gt;), the example utilizes statconnDCOM.&amp;nbsp; A slightly different approach in this example overcomes a break in functionality introduced into that earlier example by the changing in the behavior of one of the COM API methods in the most recent releases of statconnDCOM.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The integration is done using QlikView's built-in VBScript support to interoperate with the DCOM-based API.&amp;nbsp; This is just one way to integrate with R.&amp;nbsp; With a little research you can discover other potential opportunities for R integration (e.g., OpenCPU).&amp;nbsp; Also, note that R is just one such example of a statistical engine being integrated with QlikView.&amp;nbsp; Other solutions, such as commercially available statistical engines or predictive scoring engines may also be integrated in similar ways.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To get started with this example, save the attached file, QlikView-R_Predictive_Demo.zip, to your system.&amp;nbsp; Open the zip file, and copy the enclosed folder (QlikView-R_Predictive_Demo) to a location of your choice.&amp;nbsp; The location is not important as the example is portable and has no dependency on being placed in a particular folder on your system. Now navigate into the folder you just extracted and find the document named “Qlikview-R Integration Demo 20170310.pdf”.&amp;nbsp; Open the document and follow the instructions step-by-step.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;UPDATE (May 7, 2014):&amp;nbsp; I updated the installation document (Qlikview-R Integration Demo 20140421.pdf) to eliminate the RAndFriends installer as it has been unavailable for some time.&amp;nbsp; This edition of the document references R 3.1.0.&amp;nbsp; Hopefully the instructions will continue to be a good guide for subsequent versions as well.&amp;nbsp; I will continue to monitor for changes in R, statconnDCOM and other R components which could effect how the demo application works going forward.&amp;nbsp; The example QlikView application itself remains unchanged. It is a Personal Edition version, so you should be able to explore it with a licensed QlikView Desktop or the Personal Edition.&amp;nbsp; Thank you for your continued feedback on this demo.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;UPDATE (September 21, 2015):&amp;nbsp; &lt;SPAN&gt;Everyone who has been seeing the message &lt;/SPAN&gt;&lt;SPAN&gt;"The license that is embedded in this document is not valid":&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;I attached an updated version of &lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;QlikView-R_Predictive_Demo.zip&lt;/SPAN&gt;‌.&amp;nbsp; Ensure you overwrite the old QVW with the new one in this package.&amp;nbsp; That is the only change.&amp;nbsp; Please forgive this looooong overdue update.&amp;nbsp; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/blush.png" border="0" /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;UPDATE (October 9, 2016):&amp;nbsp; Updated the embedded license to work with QlikView Desktop Personal Edition.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;UPDATE (February 2, 2017):&amp;nbsp; Updated the embedded license to work with QlikView Desktop Personal Edition.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;UPDATE (March 10. 2017):&amp;nbsp; A dependency for this particular example is statconnDCOM from the team at autstat (&lt;A href="http://www.autstat.com/" target="_blank"&gt;http://www.autstat.com/&lt;/A&gt;).&amp;nbsp; If you wish to utilize statconnDCOM, you will need to contact autstat directly and purchase a license or request an evaluation license for testing.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 11:18:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/QlikView-and-R-Integration-for-Predictive-Analytics-Example/ta-p/1497163</guid>
      <dc:creator>Brian_Bauer</dc:creator>
      <dc:date>2023-02-08T11:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView and R Integration for Predictive Analytics Example</title>
      <link>https://community.qlik.com/t5/Member-Articles/QlikView-and-R-Integration-for-Predictive-Analytics-Example/tac-p/1497164#M980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Brian. This looks really interesting but when I get to the end, I do see the statconn splash page but also the macro window pops open again and the plots are not refreshed. Could you point me towards error logs? I'm comfortable with R and rattle but prety new to QlikView.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Apr 2013 23:41:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/QlikView-and-R-Integration-for-Predictive-Analytics-Example/tac-p/1497164#M980</guid>
      <dc:creator />
      <dc:date>2013-04-02T23:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView and R Integration for Predictive Analytics Example</title>
      <link>https://community.qlik.com/t5/Member-Articles/QlikView-and-R-Integration-for-Predictive-Analytics-Example/tac-p/1497165#M981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Kendra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your interest in the R integration example.&amp;nbsp; A couple of questions about the version of QlikView you are using and the license you have so I can try to rule out any QlikView environmental factors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Which version, release and build of QlikView 11 are you using?&amp;nbsp;&amp;nbsp; The current version is 11.20 SR1 build 11718.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Are you using the Personal Edition or have you installed a license key?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Beyond the first two questions – I am curious – did you attempt to run the scoring more than once?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Logging in my example is light.&amp;nbsp; There is a simple log file (R.log) in the logs folder where you installed the app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All R.log has in it is when the last scores were retrieved, like so:&amp;nbsp; “Retrieved Scores from R at 20130402200343.”&amp;nbsp; Also, the results folder should have an updated file called “ExportFile_score_idents.csv”.&amp;nbsp; Both are indications that R did its thing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And you should also have the recently generated charts from R in the plots folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if the communication with R is happening properly in your environment.&amp;nbsp; If the macro editor (Edit Module window) continues to pop up, I am happy to help troubleshoot further.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Brian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2013 00:28:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/QlikView-and-R-Integration-for-Predictive-Analytics-Example/tac-p/1497165#M981</guid>
      <dc:creator>Brian_Bauer</dc:creator>
      <dc:date>2013-04-03T00:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView and R Integration for Predictive Analytics Example</title>
      <link>https://community.qlik.com/t5/Member-Articles/QlikView-and-R-Integration-for-Predictive-Analytics-Example/tac-p/1497166#M982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Brian&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using an evaluation copy of QlikView, the version is 11.00.11282.0 SR1 and yes, I poked around for a while, opened and shut the app, ran scoring repeatedly and discovered the show-hide option (which I didn't see the first time).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are files in the subfolders results, data etc but they all have modified dates of 27 Feb 2013 so I'm guessing that that's you and not me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2013 00:48:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/QlikView-and-R-Integration-for-Predictive-Analytics-Example/tac-p/1497166#M982</guid>
      <dc:creator />
      <dc:date>2013-04-03T00:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView and R Integration for Predictive Analytics Example</title>
      <link>https://community.qlik.com/t5/Member-Articles/QlikView-and-R-Integration-for-Predictive-Analytics-Example/tac-p/1497167#M983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kendra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on the files not being created, sounds like the QlikView application is not communicating with R in your environment.&amp;nbsp; That would be reasonable considering the macro editor (Edit Module window) pops open for you.&amp;nbsp; Likely, the VBScript in your QlikView is unable create the R COM object in the runRScore subroutine.&amp;nbsp; Let's see if we can home in on the reason for why that would be the case.&amp;nbsp; More questions for you:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Is your OS 64-bit or 32-bit?&amp;nbsp; If 64-bit, do you have the 64-bit version of R (from the&amp;nbsp; RAndFriends installer) and the 64-bit version of QlikView?&amp;nbsp; My development and testing was done with the 64-bit versions. These questions go to trying to determine if there is a mis-match in the bit-ness of the required components.&amp;nbsp; Please ensure consistency.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Was the copy of R and Rattle an existing version on your system?&amp;nbsp; Or did you follow my instructions and install the current releases step-by-step?&amp;nbsp; If you are running older versions, I suggest following my guide and installing the current releases accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To remove the QlikView release you are on as a potential reason for the integration not working on your system, I installed the same version of QlikView (11.00.11282.0 SR1) -- 64-bit -- you are using running in evaluation mode (QlikView Personal Edition).&amp;nbsp; The integration with R runs normally on my system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I await your feedback.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Brian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2013 18:25:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/QlikView-and-R-Integration-for-Predictive-Analytics-Example/tac-p/1497167#M983</guid>
      <dc:creator>Brian_Bauer</dc:creator>
      <dc:date>2013-04-03T18:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView and R Integration for Predictive Analytics Example</title>
      <link>https://community.qlik.com/t5/Member-Articles/QlikView-and-R-Integration-for-Predictive-Analytics-Example/tac-p/1497168#M984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Brian, in answer to your questions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;64-bit OS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use R and Rattle already so didn't install them from the RAndFriends package.&amp;nbsp; I'm running 64-bit R 2.15.3 and Rattle 2.6.26 r77.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've just updated my version of QlikView to be the most recent 64 bit version (although still an evaluation copy).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still no luck with the script.&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2013 21:48:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/QlikView-and-R-Integration-for-Predictive-Analytics-Example/tac-p/1497168#M984</guid>
      <dc:creator />
      <dc:date>2013-04-03T21:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView and R Integration for Predictive Analytics Example</title>
      <link>https://community.qlik.com/t5/Member-Articles/QlikView-and-R-Integration-for-Predictive-Analytics-Example/tac-p/1497169#M985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Brian, looking further into this, I suspect it is something to do with a combination of statconn and the way my version of R is installed - I think the rscproxy library is not in the conventional location plus it looks like you need a paid license to run the 64-bit version of statconnDCOM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not to worry - at least I know it can be done! Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2013 22:09:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/QlikView-and-R-Integration-for-Predictive-Analytics-Example/tac-p/1497169#M985</guid>
      <dc:creator />
      <dc:date>2013-04-03T22:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView and R Integration for Predictive Analytics Example</title>
      <link>https://community.qlik.com/t5/Member-Articles/QlikView-and-R-Integration-for-Predictive-Analytics-Example/tac-p/1497170#M986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Works like a charm, also &lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-2975"&gt;the older example&lt;/A&gt; still works on my machine. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wouter &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2013 14:32:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/QlikView-and-R-Integration-for-Predictive-Analytics-Example/tac-p/1497170#M986</guid>
      <dc:creator />
      <dc:date>2013-04-09T14:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView and R Integration for Predictive Analytics Example</title>
      <link>https://community.qlik.com/t5/Member-Articles/QlikView-and-R-Integration-for-Predictive-Analytics-Example/tac-p/1497171#M987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We need to find out more about this integration. I try to get it working on my machine with two different QWVs, and each is working the same: I see only macro popup and that's it. I have R installed. So, there definitely need to be better instruction how to connect these two... I am using latest client, 64bit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Piotr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jun 2013 05:06:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/QlikView-and-R-Integration-for-Predictive-Analytics-Example/tac-p/1497171#M987</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-06-20T05:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView and R Integration for Predictive Analytics Example</title>
      <link>https://community.qlik.com/t5/Member-Articles/QlikView-and-R-Integration-for-Predictive-Analytics-Example/tac-p/1497172#M988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nice post!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to Qlikview but familiar with R, wonding if anyone could help with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does the R integration work with Qlikview server?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are there any licensing issues if using the statconn in a commercial setting?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;N.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jun 2013 15:17:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/QlikView-and-R-Integration-for-Predictive-Analytics-Example/tac-p/1497172#M988</guid>
      <dc:creator />
      <dc:date>2013-06-20T15:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView and R Integration for Predictive Analytics Example</title>
      <link>https://community.qlik.com/t5/Member-Articles/QlikView-and-R-Integration-for-Predictive-Analytics-Example/tac-p/1497173#M989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Moderator,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz upload PE enabled QV file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Jun 2013 07:16:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/QlikView-and-R-Integration-for-Predictive-Analytics-Example/tac-p/1497173#M989</guid>
      <dc:creator />
      <dc:date>2013-06-23T07:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView and R Integration for Predictive Analytics Example</title>
      <link>https://community.qlik.com/t5/Member-Articles/QlikView-and-R-Integration-for-Predictive-Analytics-Example/tac-p/1497174#M990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Piotr,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for downloading the demo.&amp;nbsp; Kendra, back in April, conveyed similar behavior.&amp;nbsp; Recently I was able to see the behavior firsthand.&amp;nbsp; I believe I understand what is going on.&amp;nbsp; The underlying cause, in my case, was not,in actuality, that the staconnDCOM API was not interoperating with R.&amp;nbsp; Rather, it was a matter with the encoding of the data file in my particular demo.&amp;nbsp; If the statconnDCOM API is working properly in your environment, what I will share with you may fix your issue.&amp;nbsp; BTW I learned you can test the statconnDCOM API with a utility which comes installed in the statconn program folder.&amp;nbsp; That utility should eliminate the API to R connectivity as an issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the solution which worked in my case:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;1)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Delete the QlikView-R folder hierarchy you extracted from the demo zip file.&lt;/P&gt;&lt;P&gt;2)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Redeploy the entire QlikView-R application from the original downloaded zip archive.&lt;/P&gt;&lt;P&gt;3)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Open QlikView Desktop and go to Settings -&amp;gt; User Preferences.&lt;/P&gt;&lt;P&gt;4)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Select the Export tab.&lt;/P&gt;&lt;P&gt;5)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Under Default Export Options, choose ANSI encoding.&amp;nbsp; I believe UTF-8 is the default.&lt;/P&gt;&lt;P&gt;6)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Now try clicking the Run Risk Assessment button.&amp;nbsp; If all goes as expected, the statconnDCOM banner should pop up and go away (without the macro editor window opening).&amp;nbsp; The Risk of Mortality Decision Tree plot should also change and display the current date/time.&lt;/P&gt;&lt;P&gt;7)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;If that works, select a different set of Patient (IDs) and click the Run Risk Assessment button again.&amp;nbsp; If your data changes and the plot updates, you’re in business.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please post back your results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Brian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2013 14:36:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/QlikView-and-R-Integration-for-Predictive-Analytics-Example/tac-p/1497174#M990</guid>
      <dc:creator>Brian_Bauer</dc:creator>
      <dc:date>2013-06-25T14:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView and R Integration for Predictive Analytics Example</title>
      <link>https://community.qlik.com/t5/Member-Articles/QlikView-and-R-Integration-for-Predictive-Analytics-Example/tac-p/1497175#M991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;N.,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you for exploring the demo example.&amp;nbsp; To be clear, the particular demo application in the package you downloaded is not designed to work from the QlikView Server.&amp;nbsp; It is intended to be run through the QlikView Desktop.&amp;nbsp; With regard to statconn, please refer to the statconn website for information on licensing of the API for commercial use. The URL is &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.statconn.com/products.html"&gt;http://www.statconn.com/products.html&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Brian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2013 14:43:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/QlikView-and-R-Integration-for-Predictive-Analytics-Example/tac-p/1497175#M991</guid>
      <dc:creator>Brian_Bauer</dc:creator>
      <dc:date>2013-06-25T14:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView and R Integration for Predictive Analytics Example</title>
      <link>https://community.qlik.com/t5/Member-Articles/QlikView-and-R-Integration-for-Predictive-Analytics-Example/tac-p/1497176#M992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;The macro is running fine but whatever the value i'm selecting from the patient id list box and running the 'macro run'&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;button, values are not reflecting on the text objects. What to do now?&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;My macro is :&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;LOGFILE_NAME = CurrentPath()&amp;amp;"/logs/R.log"&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;Sub runRScore&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' Export the selected patient data to be scored.&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set myTable=ActiveDocument.GetSheetObject("DataSentToR")&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myTable.Export CurrentPath&amp;amp;"/data/ExportFile.csv",",",0&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' Create a COM object representing R&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set R = CreateObject("StatConnectorSrv.StatConnector")&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R.Init "R"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' Rattle is Copyright (c) 2006-2012 Togaware Pty Ltd.&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R.EvaluateNoReturn "library(rattle)"&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R.EvaluateNoReturn "building &amp;lt;- TRUE"&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R.EvaluateNoReturn "scoring&amp;nbsp; &amp;lt;- ! building"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' The colorspace package is used to generate the colours used in plots, if available.&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R.EvaluateNoReturn "library(colorspace)"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' A pre-defined value is used to reset the random seed so that results are repeatable.&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R.EvaluateNoReturn "crv$seed &amp;lt;- 42"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' Load the data.&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R.EvaluateNoReturn "crs$dataset &amp;lt;- read.csv('"&amp;amp;CurrentPath&amp;amp;"/data/readmission.csv', na.strings=c('.', 'NA', '', '?'), strip.white=TRUE, encoding='UTF-8')"&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' The following variable selections have been noted.&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R.EvaluateNoReturn "crs$input &amp;lt;- c('enum', 't.start', 't.stop', 'time','event', 'chemo', 'sex', 'dukes','charlson')"&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R.EvaluateNoReturn "crs$numeric &amp;lt;- c('enum', 't.start', 't.stop', 'time','event')"&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R.EvaluateNoReturn "crs$categoric &amp;lt;- c('chemo', 'sex', 'dukes', 'charlson')"&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R.EvaluateNoReturn "crs$target&amp;nbsp; &amp;lt;- 'death'"&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R.EvaluateNoReturn "crs$risk&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;- NULL"&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R.EvaluateNoReturn "crs$ident&amp;nbsp;&amp;nbsp; &amp;lt;- c('record', 'id')"&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R.EvaluateNoReturn "crs$ignore&amp;nbsp; &amp;lt;- NULL"&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R.EvaluateNoReturn "crs$weights &amp;lt;- NULL"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' Decision Tree&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' The 'rpart' package provides the 'rpart' function.&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R.EvaluateNoReturn "require(rpart, quietly=TRUE)"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' Reset the random number seed to obtain the same results each time.&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R.EvaluateNoReturn "set.seed(crv$seed)"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' Build the Decision Tree model.&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R.EvaluateNoReturn "crs$rpart &amp;lt;- rpart(death ~ ., data=crs$dataset[, c(crs$input, crs$target)], method='class', parms=list(split='information'), control=rpart.control(usesurrogate=0, maxsurrogate=0))"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' Score a dataset.&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' Read a dataset from file for testing the model.&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R.EvaluateNoReturn "crs$testset &amp;lt;- read.csv('"&amp;amp;CurrentPath&amp;amp;"/data/ExportFile.csv', na.strings=c('.', 'NA', '', '?'), header=TRUE, sep=',', encoding='UTF-8')"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' Obtain probability scores for the Decision Tree model on ExportFile.csv.&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R.EvaluateNoReturn "crs$pr &amp;lt;- predict(crs$rpart, crs$testset[,c(crs$input)], type='class')"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' Extract the relevant variables from the dataset.&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R.EvaluateNoReturn "sdata &amp;lt;- subset(crs$testset[,], select=c('record', 'id'))"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' Output the combined data.&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R.EvaluateNoReturn "write.csv(cbind(sdata, crs$pr), file='"&amp;amp;CurrentPath&amp;amp;"/results/ExportFile_score_idents.csv', row.names=FALSE)"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' Create plot file for the Decision Tree.&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R.EvaluateNoReturn "setwd('"&amp;amp;CurrentPath&amp;amp;"/New Plots')"&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R.EvaluateNoReturn "png('R_Score_Plot_1_"&amp;amp;Runtime&amp;amp;".png')"&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R.EvaluateNoReturn "plot(crs$rpart)"&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R.EvaluateNoReturn "text(crs$rpart, use.n=TRUE)"&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R.EvaluateNoReturn "title(main='Decision Tree', sub=format(Sys.time(), '%a %b %d %X %Y'), col.main='blue', col.sub='black', line='2', font.main=4, font.sub=3)"&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R.EvaluateNoReturn "dev.off()"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' Create Bar plot&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' The 'gplots' package provides the 'barplot2' function.&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R.EvaluateNoReturn "require(gplots, quietly=TRUE)"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R.EvaluateNoReturn "set.seed(crv$seed)"&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' Load the data.&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R.EvaluateNoReturn "crs$dataset &amp;lt;- read.csv('"&amp;amp;CurrentPath&amp;amp;"/data/readmission.csv', na.strings=c('.', 'NA', '', '?'), strip.white=TRUE, encoding='UTF-8')"&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' Generate the summary data for plotting.&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R.EvaluateNoReturn "ds &amp;lt;- rbind(summary(na.omit(crs$dataset[crs$sample,]$sex)), summary(na.omit(crs$dataset[crs$sample,][crs$dataset[crs$sample,]$death=='0',]$sex)), summary(na.omit(crs$dataset[crs$sample,][crs$dataset[crs$sample,]$death=='1',]$sex)))"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' Sort the entries.&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R.EvaluateNoReturn "ord &amp;lt;- order(ds[1,], decreasing=TRUE)"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R.EvaluateNoReturn "setwd('"&amp;amp;CurrentPath&amp;amp;"/New Plots')"&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R.EvaluateNoReturn "png('R_Score_Plot_4_"&amp;amp;Runtime&amp;amp;".png')"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' Plot the data.&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R.EvaluateNoReturn "bp &amp;lt;-&amp;nbsp; barplot2(ds[,ord], beside=TRUE, ylab='Frequency', xlab='Sex', ylim=c(0, 455), col=rainbow_hcl(3))"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Add the actual frequencies.&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R.EvaluateNoReturn "text(bp, ds[,ord]+15, ds[,ord])"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Add a legend to the plot.&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R.EvaluateNoReturn "legend('topright', bty='n', c('All','0','1'), fill=rainbow_hcl(3))"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Add a title to the plot.&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R.EvaluateNoReturn "title(main='Distribution of sex (sample)by death', sub=paste(format(Sys.time(), '%a %b %d %X %Y')), col.main='blue', col.sub='black', line='2', font.main=4, font.sub=3)"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R.EvaluateNoReturn "dev.off()"&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' Close R connection&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; R.close&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set v = ActiveDocument.GetVariable("vRuntime")&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; v.SetContent Runtime(), True&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' Load the scores into the QlikView application&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActiveDocument.DoReload 2, false,false&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Fail on error, Partial Reload&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WriteLog("Retrieved Scores from R at "&amp;amp;Runtime&amp;amp;".")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;End Sub&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;Function CurrentPath()&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set v = ActiveDocument.GetVariable("vAppPath")&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CurrentPath = Replace(v.GetContent.String,"\","/")&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;End Function&amp;nbsp; &lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;Function Runtime()&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dtmThisDay =&amp;nbsp; Right(Cstr(Day(Date) + 100),2)&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dtmThisMonth = Right(Cstr(Month(Date) + 100),2)&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dtmThisYear = Year(Date)&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dtmThisHour = Right(Cstr(Hour(Time) + 100),2)&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dtmThisMinute = Right(Cstr(Minute(Time) + 100),2)&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dtmThisSecond = Right(Cstr(Second(Time) + 100),2)&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Runtime = dtmThisYear &amp;amp; dtmThisMonth &amp;amp; dtmThisDay &amp;amp; dtmThisHour &amp;amp; dtmThisMinute &amp;amp; dtmThisSecond&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;End Function&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;Function openOutputFile(filename)&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp; 'Create and open an output file&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Const ForWriting = 2&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set objFSO = CreateObject("Scripting.FileSystemObject")&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set openOutputFile = objFSO.OpenTextFile(filename, ForWriting, True)&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;End Function&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;Function WriteLog(message)&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set logFile = openOutputFile(LOGFILE_NAME)&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; logFile.WriteLine(message)&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; logFile.Close&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;End Function&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;Here I want to select some id's from the list box and trying to reflect the values as a tree model and as a bar plot on two different text object. The .png files are generating but the value is not reflecting there. I'm giving the Text objects code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;1. Here I'm showing the tree model&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;=vAppPath&amp;amp;'\New Plots\R_Score_Plot_1_'&amp;amp;$(vRuntime)&amp;amp;'.png'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;2. Here I'm showing the Bar plot&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;=vAppPath&amp;amp;'\New Plots\R_Score_Plot_4_'&amp;amp;$(vRuntime)&amp;amp;'.png'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #737373; font-family: Arial, Helvetica, sans-serif;"&gt;Thats all. Any suggestion will be helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2013 05:04:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/QlikView-and-R-Integration-for-Predictive-Analytics-Example/tac-p/1497176#M992</guid>
      <dc:creator />
      <dc:date>2013-07-08T05:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView and R Integration for Predictive Analytics Example</title>
      <link>https://community.qlik.com/t5/Member-Articles/QlikView-and-R-Integration-for-Predictive-Analytics-Example/tac-p/1497177#M993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Apart from this , Is there any other sample code or step by step one page doc. avl. to implement this.. .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This attachment doc 2975 is not helpful unable to open the qvw file in the PE ???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Jul 2013 16:28:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/QlikView-and-R-Integration-for-Predictive-Analytics-Example/tac-p/1497177#M993</guid>
      <dc:creator />
      <dc:date>2013-07-14T16:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView and R Integration for Predictive Analytics Example</title>
      <link>https://community.qlik.com/t5/Member-Articles/QlikView-and-R-Integration-for-Predictive-Analytics-Example/tac-p/1497178#M994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@sathia--- its exactly true. I feel the same. Agree with you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On Mon, Jul 15, 2013 at 8:05 PM, Samantha Gkonos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jul 2013 11:12:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/QlikView-and-R-Integration-for-Predictive-Analytics-Example/tac-p/1497178#M994</guid>
      <dc:creator />
      <dc:date>2013-07-16T11:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView and R Integration for Predictive Analytics Example</title>
      <link>https://community.qlik.com/t5/Member-Articles/QlikView-and-R-Integration-for-Predictive-Analytics-Example/tac-p/1497179#M995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its been long I'm facing the problem. But I have no idea how to solve the porblem. Anybody please help. Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jul 2013 04:37:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/QlikView-and-R-Integration-for-Predictive-Analytics-Example/tac-p/1497179#M995</guid>
      <dc:creator />
      <dc:date>2013-07-18T04:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView and R Integration for Predictive Analytics Example</title>
      <link>https://community.qlik.com/t5/Member-Articles/QlikView-and-R-Integration-for-Predictive-Analytics-Example/tac-p/1497180#M996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Brian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Having the same issue where the module opens up and yes the export encoding has been ANSI by default for me. I am guessing its something to do with the matching versions of rcom, rscproxy, statconnCOM as RandFriends is not available now. Pls could you put the older version file of RandFriends here or maybe mention the matching version nos.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2013 20:13:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/QlikView-and-R-Integration-for-Predictive-Analytics-Example/tac-p/1497180#M996</guid>
      <dc:creator />
      <dc:date>2013-08-08T20:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView and R Integration for Predictive Analytics Example</title>
      <link>https://community.qlik.com/t5/Member-Articles/QlikView-and-R-Integration-for-Predictive-Analytics-Example/tac-p/1497181#M997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Brian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am unable to see the RAandFriends download at the link provided in the documentation: &lt;A href="http://rcom.univie.ac.at/download.html" title="http://rcom.univie.ac.at/download.html"&gt;statconn&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know if this has been removed? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Sep 2013 21:16:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/QlikView-and-R-Integration-for-Predictive-Analytics-Example/tac-p/1497181#M997</guid>
      <dc:creator>danielgargiulo</dc:creator>
      <dc:date>2013-09-01T21:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView and R Integration for Predictive Analytics Example</title>
      <link>https://community.qlik.com/t5/Member-Articles/QlikView-and-R-Integration-for-Predictive-Analytics-Example/tac-p/1497182#M998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Brian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As with Amit, I am also receiving the Macro Popping up after following the instructions you posted on 25th June above. Any ideas of how we can resolve or is there an earlier version we can install?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;In response to my query above I have:&lt;/P&gt;&lt;P&gt; - download R from: &lt;A href="http://www.r-project.org/" title="http://www.r-project.org/"&gt;The R Project for Statistical Computing&lt;/A&gt;&lt;/P&gt;&lt;P&gt; - statconnDcom non commercial from : &lt;A href="http://rcom.univie.ac.at/download.html" title="http://rcom.univie.ac.at/download.html"&gt;statconn&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other Notes when installing the above:&lt;/P&gt;&lt;P&gt;- just before step 10 in the documentation, you will also need to type 'yes' to the prompt in R.You should then see the error as described in step 10.&lt;/P&gt;&lt;P&gt; - At the end rattle also prompted me to install serveral other files three time, i installed all but do not know if this was required or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Sep 2013 06:57:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/QlikView-and-R-Integration-for-Predictive-Analytics-Example/tac-p/1497182#M998</guid>
      <dc:creator>danielgargiulo</dc:creator>
      <dc:date>2013-09-02T06:57:10Z</dc:date>
    </item>
  </channel>
</rss>

