H:\public_html\sta6208\rpd>C:\R-2.9.0\bin\Rterm --vanilla R version 2.9.0 (2009-04-17) Copyright (C) 2009 The R Foundation for Statistical Computing ISBN 3-900051-07-0 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. Natural language support but running in an English locale R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > pdf("rpd11_1r.pdf") > > > rad1 <- matrix(c( + 0, 118.4, 0.7, + 0, 215.2, 2.9, + 0, 283.9, 5.6, + 0, 387.9, 8.7, + 0, 451.5, 12.4, + 0, 515.6, 17.4, + 1, 109.1, 1.3, + 1, 199.6, 4.8, + 1, 264.2, 6.5, + 1, 358.2, 9.4, + 1, 413.2, 12.9, + 1, 452.5, 12.3), byrow=T,ncol=3) > > level <- rad1[,1] > rad <- rad1[,2] > seedwt <- rad1[,3] > sqrtsw <- sqrt(seedwt) > > reg11_1.reg <- lm(sqrtsw ~ rad + level) > reg11_1.rstudent <- rstudent(reg11_1.reg) > reg11_1.yhat <- predict(reg11_1.reg) > > > plot(reg11_1.yhat,reg11_1.rstudent,pch=level) > abline(h=0) > segments(reg11_1.yhat,0,reg11_1.yhat,reg11_1.rstudent) > > reg11_3.reg <- lm(seedwt ~ rad + level) > reg11_3.rstudent <- rstudent(reg11_3.reg) > reg11_3.yhat <- predict(reg11_3.reg) > > > plot(reg11_3.yhat,reg11_3.rstudent,pch=level) > abline(h=0) > segments(reg11_3.yhat,0,reg11_3.yhat,reg11_3.rstudent) > > reg11_10.inf <- influence.measures(reg11_3.reg) > > reg11_10.inf Influence measures of lm(formula = seedwt ~ rad + level) : dfb.1_ dfb.rad dfb.levl dffit cov.r cook.d hat inf 1 0.51717 -0.39921 -0.2884 0.5285 1.9809 0.099291 0.388 2 -0.34584 0.20902 0.2596 -0.3957 1.5327 0.055129 0.231 3 -0.18411 0.06460 0.1920 -0.2707 1.5257 0.026362 0.177 4 -0.12980 -0.20815 0.4278 -0.6752 0.8884 0.136499 0.184 5 0.00686 -0.04499 0.0419 -0.0806 1.8642 0.002431 0.242 6 -0.85639 2.14038 -1.2278 2.9921 0.0685 1.062575 0.341 * 7 0.26404 -0.30200 0.1694 0.4184 1.9357 0.063059 0.348 8 0.13589 -0.15544 0.1821 0.3238 1.5816 0.037544 0.217 9 -0.00276 0.00316 -0.0111 -0.0166 1.7206 0.000104 0.173 10 0.07534 -0.08618 -0.1979 -0.2813 1.5337 0.028434 0.184 11 -0.17727 0.20276 0.2515 0.3834 1.5508 0.051951 0.231 12 0.47318 -0.54122 -0.5146 -0.8424 1.0846 0.217440 0.284 > > dev.off() null device 1 >