<?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 Intel MKL make R lm() fails if observations are high enough in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Intel-MKL-make-R-lm-fails-if-observations-are-high-enough/m-p/1152919#M27291</link>
    <description>&lt;P&gt;I have installed Intel MKL on my Kubuntu 19.04. I have R 3.6.0.&lt;/P&gt;&lt;P&gt;Using Intel MKL, R's linear regression failes if the number of samples is somehow high (20k). Here is the code:&lt;/P&gt;&lt;P&gt;```&lt;BR /&gt;rm(list=ls())&lt;BR /&gt;N = 20000&lt;BR /&gt;xvar &amp;lt;- runif(N, -10, 10)&amp;nbsp;&lt;BR /&gt;e &amp;lt;- rnorm(N, mean=0, sd=1)&lt;BR /&gt;yvar &amp;lt;- 1 + 2*xvar + e&lt;BR /&gt;plot(xvar,yvar)&lt;BR /&gt;lmMod &amp;lt;- lm(yvar~xvar)&lt;BR /&gt;print(summary(lmMod))&lt;BR /&gt;```&lt;/P&gt;&lt;P&gt;The coefficients are just random numbers and are not significant,&amp;nbsp;R-squared is low. Instead for lower N (like 2000) it works.&lt;/P&gt;&lt;P&gt;Just uninstalling Intel MKL and thus relying back on OpenBLAS solved the problem completely.&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also check&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/56305452/increasing-the-number-of-observations-have-r-throw-random-coefficients-numeric?noredirect=1#comment99221689_56305452"&gt;here&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 25 May 2019 14:19:07 GMT</pubDate>
    <dc:creator>Raffaele_M_</dc:creator>
    <dc:date>2019-05-25T14:19:07Z</dc:date>
    <item>
      <title>Intel MKL make R lm() fails if observations are high enough</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Intel-MKL-make-R-lm-fails-if-observations-are-high-enough/m-p/1152919#M27291</link>
      <description>&lt;P&gt;I have installed Intel MKL on my Kubuntu 19.04. I have R 3.6.0.&lt;/P&gt;&lt;P&gt;Using Intel MKL, R's linear regression failes if the number of samples is somehow high (20k). Here is the code:&lt;/P&gt;&lt;P&gt;```&lt;BR /&gt;rm(list=ls())&lt;BR /&gt;N = 20000&lt;BR /&gt;xvar &amp;lt;- runif(N, -10, 10)&amp;nbsp;&lt;BR /&gt;e &amp;lt;- rnorm(N, mean=0, sd=1)&lt;BR /&gt;yvar &amp;lt;- 1 + 2*xvar + e&lt;BR /&gt;plot(xvar,yvar)&lt;BR /&gt;lmMod &amp;lt;- lm(yvar~xvar)&lt;BR /&gt;print(summary(lmMod))&lt;BR /&gt;```&lt;/P&gt;&lt;P&gt;The coefficients are just random numbers and are not significant,&amp;nbsp;R-squared is low. Instead for lower N (like 2000) it works.&lt;/P&gt;&lt;P&gt;Just uninstalling Intel MKL and thus relying back on OpenBLAS solved the problem completely.&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also check&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/56305452/increasing-the-number-of-observations-have-r-throw-random-coefficients-numeric?noredirect=1#comment99221689_56305452"&gt;here&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 25 May 2019 14:19:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Intel-MKL-make-R-lm-fails-if-observations-are-high-enough/m-p/1152919#M27291</guid>
      <dc:creator>Raffaele_M_</dc:creator>
      <dc:date>2019-05-25T14:19:07Z</dc:date>
    </item>
  </channel>
</rss>

