R version 2.11.1 (2010-05-31) Copyright (C) 2010 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. [R.app GUI 1.34 (5589) x86_64-apple-darwin9.8.0] [Workspace restored from /Users/matt/.RData] > icecream = c(2,5,3,5,7,9,7,8,5,2,3,1) > sharks = c(23,46,42,37,58,97,85,75,68,53,25,16) > iceshark = lm(sharks ~ icecream) > iceshark Call: lm(formula = sharks ~ icecream) Coefficients: (Intercept) icecream 11.828 8.475 > summary(iceshark) Call: lm(formula = sharks ~ icecream) Residuals: Min 1Q Median 3Q Max -17.202 -9.215 -4.465 10.124 24.222 Coefficients: Estimate Std. Error t value Pr(>|t|) (Intercept) 11.828 8.418 1.405 0.190290 icecream 8.475 1.570 5.398 0.000302 *** --- Signif. codes: 0 Ô***Õ 0.001 Ô**Õ 0.01 Ô*Õ 0.05 Ô.Õ 0.1 Ô Õ 1 Residual standard error: 13.53 on 10 degrees of freedom Multiple R-squared: 0.7445, Adjusted R-squared: 0.7189 F-statistic: 29.14 on 1 and 10 DF, p-value: 0.0003023 > plot(shark,icecream) Error in plot(shark, icecream) : object 'shark' not found > plot(sharks,icecream) > plot(icecream,sharks) > abline(iceshark) > ?lm starting httpd help server ... done Tue Apr 24 09:49:01 mdhcp163.marlboro.edu R[47675] : kCGErrorIllegalArgument: CGSShapeWindow Tue Apr 24 09:49:01 mdhcp163.marlboro.edu R[47675] : kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged. >