Re: [R] Fwd: Potential Issue with lm.influence

2019-04-03 Thread Eric Bridgeford
tario, Canada > Web: https://socialsciences.mcmaster.ca/jfox/ > > > > > > -Original Message----- > > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Eric > > Bridgeford > > Sent: Tuesday, April 2, 2019 5:01 PM > > To: Bert Gunter

Re: [R] Fwd: Potential Issue with lm.influence

2019-04-03 Thread Eric Bridgeford
rstudent calls influence, to my knowledge, and all of the results passed by rstudent are dependent on values returned by influence (other than the weights, which I can't imagine are NaN), so I believe that influence is the issue. See the line https://github.com/SurajGupta/r-source/blob/a28e609e72ed

Re: [R] Fwd: Potential Issue with lm.influence

2019-04-03 Thread peter dalgaard
io, Canada > Web: https://socialsciences.mcmaster.ca/jfox/ > > > > >> -Original Message- >> From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Eric >> Bridgeford >> Sent: Tuesday, April 2, 2019 5:01 PM >> To: Bert Gunter >>

Re: [R] Fwd: Potential Issue with lm.influence

2019-04-02 Thread Fox, John
ic > Bridgeford > Sent: Tuesday, April 2, 2019 5:01 PM > To: Bert Gunter > Cc: R-help > Subject: Re: [R] Fwd: Potential Issue with lm.influence > > I agree the influence documentation suggests NaNs may result; however, as > these can be manually computed and are, ind

Re: [R] Fwd: Potential Issue with lm.influence

2019-04-02 Thread Jim Lemon
Hi Eric, When I run your code (using the MASS library) I find that rstudent(fit2) also returns NaN in the seventh position. Perhaps the problem is occurring there and not in the "influence" function. Jim On Wed, Apr 3, 2019 at 9:12 AM Eric Bridgeford wrote: > > I agree the influence documentatio

Re: [R] Fwd: Potential Issue with lm.influence

2019-04-02 Thread Eric Bridgeford
I agree the influence documentation suggests NaNs may result; however, as these can be manually computed and are, indeed, finite/existing (ie, computing the held-out influence by manually training n models for n points to obtain n leave one out influence measures), I don't possibly see how the func

Re: [R] Fwd: Potential Issue with lm.influence

2019-04-02 Thread Eric Bridgeford
How can I add attachments? The following two files were attached in the initial message On Tue, Apr 2, 2019 at 3:34 PM Bert Gunter wrote: > Nothing was attached. The r-help server strips most attachments. Include > your code inline. > > Also note that > > > 0/0 > [1] NaN > > so maybe something l

Re: [R] Fwd: Potential Issue with lm.influence

2019-04-02 Thread Bert Gunter
Also, I suggest you read ?influence which may explain the source of your NaN's . Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Tue, Apr 2, 2019 at 1:29 PM Ber

Re: [R] Fwd: Potential Issue with lm.influence

2019-04-02 Thread Bert Gunter
I told you already: **Include code inline ** See ?dput for how to include a text version of objects, such as data frames, inline. Otherwise, I believe .txt text files are not stripped if you insist on *attaching* data or code. Others may have better advice. Bert Gunter "The trouble with having

Re: [R] Fwd: Potential Issue with lm.influence

2019-04-02 Thread Bert Gunter
Nothing was attached. The r-help server strips most attachments. Include your code inline. Also note that > 0/0 [1] NaN so maybe something like that occurs in the course of your calculations. But that's just a guess, so feel free to disregard. Bert Gunter "The trouble with having an open mind

[R] Fwd: Potential Issue with lm.influence

2019-04-02 Thread Eric Bridgeford
Hi R core team, I experienced the following issue with the attached data/code snippet, where the studentized residual for a single observation appears to be NaN given finite predictors/responses, which appears to be driven by the glm.influence method in the stats package. I am curious to whether t