Re: [R] Problem with lm Giving Wrong Results

2021-12-03 Thread Labone, Thomas
Health University of South Carolina Columbia, South Carolina USA From: Sarah Goslee Sent: Friday, December 3, 2021 11:00 AM To: Labone, Thomas Cc: Bill Dunlap ; r-help@r-project.org Subject: Re: [R] Problem with lm Giving Wrong Results It might also be a BLAS

Re: [R] Problem with lm Giving Wrong Results

2021-12-03 Thread Sarah Goslee
t;Min. 1st Qu. MedianMean 3rd Qu.Max. > 0.3767 0.8204 0.9659 0.9947 1.1372 2.4772 > > > > > Thomas R. LaBone > PhD student > Department of Epidemiology and Biostatistics > Arnold School of Public Health > University of South Carolina > Columbia, South Carolina USA > > >

Re: [R] Problem with lm Giving Wrong Results

2021-12-03 Thread Labone, Thomas
h Carolina Columbia, South Carolina USA From: Labone, Thomas Sent: Thursday, December 2, 2021 11:53 AM To: Bill Dunlap Cc: r-help@r-project.org Subject: Re: [R] Problem with lm Giving Wrong Results > summary(fit) Call: lm(formula = log(k) ~ Z) Residuals:

Re: [R] Problem with lm Giving Wrong Results

2021-12-02 Thread Labone, Thomas
Cc: r-help@r-project.org Subject: Re: [R] Problem with lm Giving Wrong Results On the 'bad' machines, what did you get for summary(fit) summary(k) summary(Z) summary(gm*gsd^Z) ? -Bill On Thu, Dec 2, 2021 at 6:18 AM Labone, Thomas mailto:lab...@email.sc.edu>> wrote: In the code be

Re: [R] Problem with lm Giving Wrong Results

2021-12-02 Thread Duncan Murdoch
On 02/12/2021 5:50 a.m., Labone, Thomas wrote: In the code below the first and second plots should look pretty much the same, the only difference being that the first has n=1000 points and the second n=1 points. On two of my Linux machines (info below) the second plot is a horizontal line

Re: [R] Problem with lm Giving Wrong Results

2021-12-02 Thread Bill Dunlap
On the 'bad' machines, what did you get for summary(fit) summary(k) summary(Z) summary(gm*gsd^Z) ? -Bill On Thu, Dec 2, 2021 at 6:18 AM Labone, Thomas wrote: > In the code below the first and second plots should look pretty much the > same, the only difference being that the first

Re: [R] Problem with lm Giving Wrong Results

2021-12-02 Thread Ivan Krylov
On Thu, 2 Dec 2021 14:34:42 + "Labone, Thomas" wrote: > Can someone point me to the procedure for switching from the Intel > Math Library back to the standard math library so that I can see if > the problem is associated with using MKL? Depends on how you have installed it. You mentioned

Re: [R] Problem with lm Giving Wrong Results

2021-12-02 Thread Labone, Thomas
University of South Carolina Columbia, South Carolina USA From: J C Nash Sent: Thursday, December 2, 2021 9:31 AM To: Labone, Thomas ; r-help@r-project.org Subject: Re: [R] Problem with lm Giving Wrong Results I get two similar graphs. https://protect2

Re: [R] Problem with lm Giving Wrong Results

2021-12-02 Thread J C Nash
I get two similar graphs. https://web.ncf.ca/nashjc/jfiles/Rplot-Labone-4095.pdf https://web.ncf.ca/nashjc/jfiles/RplotLabone10K.pdf Context: R version 4.1.2 (2021-11-01) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Linux Mint 20.2 Matrix products: default BLAS:

Re: [R] Problem with lm Giving Wrong Results

2021-12-02 Thread Eric Berger
Hi Thomas, I could not reproduce your problem. Both examples worked fine for me. Here is my setup: R version 4.1.2 (2021-11-01) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Ubuntu 20.04.3 LTS Matrix products: default BLAS: /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so.3

[R] Problem with lm Giving Wrong Results

2021-12-02 Thread Labone, Thomas
In the code below the first and second plots should look pretty much the same, the only difference being that the first has n=1000 points and the second n=1 points. On two of my Linux machines (info below) the second plot is a horizontal line (incorrect answer from lm), but on my Windows 10