I found an outlier using the
outlierTest function in the car package. However, I can see from the results that the Externally Studentized Residual and p-values.
This is a result.
This indicates that the 718th observation has an outlier. right??
The code to derive the result is as follows.
credit<-read.csv("german.csv", header = TRUE) F=c(1,2,4,5,7,8,9,10,11,12,13,15,16,17,18,19,20,21) for(i in F) credit[,i]=as.factor(credit[,i]) german_logit<-glm(Creditability~.,data=credit, family = "binomial") library("car") german_outlier<-outlierTest(german_logit,n.max=9999) german_outlier
If so, is it correct to delete the 718th observation?
I want to know what variable has outlier and its value, because I want to change that value as proper value. What function do I have to use?