Hello all, I fit a linear model to some data and used plot() to create diagnostic plots for the fit; I am having trouble reading the points that R is flagging as influential. Is there a way to get the list of influential points from the fit or its summary, etc.? Most likely, there are a few points appearing in almost the same place, making it difficult to read from the plots. Bill
Hi Bill, Have a look at the influence.measures function... my.lm <- lm( ... ) influence.measures( my.lm ) Hope this helps, Michael On 30 November 2010 00:13, Schwab,Wilhelm K <bschwab at anest.ufl.edu> wrote:> Hello all, > > I fit a linear model to some data and used plot() to create diagnostic plots for the fit; I am having trouble reading the points that R is flagging as influential. ?Is there a way to get the list of influential points from the fit or its summary, etc.? ?Most likely, there are a few points appearing in almost the same place, making it difficult to read from the plots. > > Bill > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >
Michael, That looks like what I need - thanks! Bill ________________________________________ From: Michael Bedward [michael.bedward at gmail.com] Sent: Monday, November 29, 2010 7:36 PM To: Schwab,Wilhelm K Cc: r-help at r-project.org Subject: Re: [R] List of influential points? Hi Bill, Have a look at the influence.measures function... my.lm <- lm( ... ) influence.measures( my.lm ) Hope this helps, Michael On 30 November 2010 00:13, Schwab,Wilhelm K <bschwab at anest.ufl.edu> wrote:> Hello all, > > I fit a linear model to some data and used plot() to create diagnostic plots for the fit; I am having trouble reading the points that R is flagging as influential. Is there a way to get the list of influential points from the fit or its summary, etc.? Most likely, there are a few points appearing in almost the same place, making it difficult to read from the plots. > > Bill > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >