[R] Bad points in regression

Petr Pikal petr.pikal at precheza.cz
Fri Mar 16 14:28:44 CET 2007


Hi

you can check ?influence  or ?influence.measures to evaluate some 
regression diagnostics

Regards
Petr


On 16 Mar 2007 at 9:56, Alberto Monteiro wrote:

From:           	"Alberto Monteiro" <albmont at centroin.com.br>
To:             	r-help at stat.math.ethz.ch
Date sent:      	Fri, 16 Mar 2007 09:56:56 -0200
Subject:        	[R] Bad points in regression

> I have a question, maybe it's better to explain by example:
> 
> alpha <- 0.3
> beta <- 0.4
> sigma <- 0.5
> err <- rnorm(100)
> err[15] <- 5; err[25] <- -4; err[50] <- 10
> x <- 1:100
> y <- alpha + beta * x + sigma * err
> ll <- lm(y ~ x)
> plot(ll)
> 
> Now, the graphs clearly show that 15, 25 and 50 are the indexes
> of the bad points. How can I retrieve this information from ll?
> 
> Alberto Monteiro
> 
> ______________________________________________
> R-help at stat.math.ethz.ch 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.

Petr Pikal
petr.pikal at precheza.cz



More information about the R-help mailing list