Re: [R] NA's when subset in a dataframe

2012-05-03 Thread Milan Bouchet-Valat
Le jeudi 03 mai 2012 à 07:37 -0700, agent dunham a écrit : > Dear community, > > I'm having this silly problem. > > I've a linear model. After fixing it, I wanted to know which data had > studentized residuals larger than 3, so i tried this: > > d1 <- cooks.distance(lmmodel) > r <- sqrt(abs(rs

[R] NA's when subset in a dataframe

2012-05-03 Thread agent dunham
Dear community, I'm having this silly problem. I've a linear model. After fixing it, I wanted to know which data had studentized residuals larger than 3, so i tried this: d1 <- cooks.distance(lmmodel) r <- sqrt(abs(rstandard(lmmodel))) rstu <- abs(rstudent(lmmodel)) a <- cbind( mydata, d1, r,