This preview shows page 1. Sign up to view the full content.
Unformatted text preview: fit <- lm(Y~X) summary(fit) # for 2 plots on the same page (and square plots) par(mfrow=c(2,1)) par(pty="s") plot(fit$residuals) title("Residuals") abline(h=0, lty=3) plot(X, fit$residuals) abline(h=0, lty=3) title("Residuals vs. X")...
View Full Document
This note was uploaded on 12/17/2010 for the course STAT 420 taught by Professor Stepanov during the Spring '08 term at University of Illinois, Urbana Champaign.
- Spring '08