Uwe Ligges wrote: > > > CE.KA wrote: >> Hi R users >> I used the function line(x,y) and line(lowess(x,y)) to see the >> correlation >> between 2 variables (x,y). >> Here is my question: >> is there a way to ask R to tell me the equation of >> -this line : line(x,y) > > The equation if line(x,y)? It is given by the n data points directly and > consists of n-1 separate linear parts.
line() not lines()... > line(cars) Call: line(cars) Coefficients: [1] -26.053 4.421 I'm a bit confused as to how you can avoid finding the equation of the line from that output! -- O__ ---- Peter Dalgaard Ă˜ster Farimagsgade 5, Entr.B c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - ([EMAIL PROTECTED]) FAX: (+45) 35327907 ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.