[R] new r user

Daniel Nordlund djnordlund at verizon.net
Thu Mar 5 08:21:56 CET 2009


> -----Original Message-----
> From: r-help-bounces at r-project.org 
> [mailto:r-help-bounces at r-project.org] On Behalf Of Kris
> Sent: Wednesday, March 04, 2009 8:28 PM
> To: r-help at r-project.org
> Subject: [R] new r user
> 
> When adding a trend line to a scatterplot (e.g. abline 
> (90,4,col="red"), I
> believe the "90" is the intercept and "4" is the slope.  How 
> do I determine
> the intercept and slope for the abline command?
> 
>  
> 
> Kristopher R. Deininger
> Management Strategy & Entrepreneurship
> PhD Student 2012
> 
> Robert H. Smith School of Business
> University of Maryland
> 3330L Van Munching Hall
> College Park, MD 20742-1815
> 

If you are asking how to find the least-squares estimates for slope and
intercept for a given set of data, then look at 

?lm

If you are asking about something else, then you will need to provide more
context.

Hope this is helpful,

Dan

Daniel Nordlund
Bothell, WA USA




More information about the R-help mailing list