Re: [R] Residuals of tobit{AER} and testing distribution normality

2014-03-26 Thread David Winsemius
On Mar 25, 2014, at 11:02 AM, Michal Kvasnička wrote: > Hallo. > > What are the residuals returned by resid() in this code? > > library(AER) > m <- tobit(y ~ x1 + x2, data=dat) > rr <- resid(m2, type = "response") > > Can I use them to test the normality of the random variable distribution > t

[R] Residuals of tobit{AER} and testing distribution normality

2014-03-25 Thread Michal Kvasnička
Hallo. What are the residuals returned by resid() in this code? library(AER) m <- tobit(y ~ x1 + x2, data=dat) rr <- resid(m2, type = "response") Can I use them to test the normality of the random variable distribution this way? qqnorm(rr) shapiro.test(rr) And is it correct to handle heteroske