?summary.lm says, under the "Value" section, coefficients: a p x 4 matrix with columns for the estimated coefficient, its standard error, t-statistic and corresponding (two- sided) p-value. so try summary(fit.lm)$coefficients[,1:2] to get the coefficients and their SEs. For nls, it takes a bit more digging, as the documentation is a bit sparse. Something like: summary(nlsfit)$parameters[,1:2] will give what you want. Cheers, Andy -----Original Message----- From: Antonio Olinto [mailto:aolinto at bignet.com.br] Sent: Wednesday, October 30, 2002 11:05 AM To: R-Help Subject: [R] extracting Std. Error value from lm/nls Hi, How to extract Std. Error values from a lm or a nls? With coef(model), coef(model)[1], coef(model)[2] and df.residual(model) I can get the coeffcients and the degrees of freedom but I couldn't find a way to get Std. Error values. Thanks, Antonio Olinto -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. -.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._. _._ ------------------------------------------------------------------------------ Notice: This e-mail message, together with any attachments, contains information of Merck & Co., Inc. (Whitehouse Station, New Jersey, USA) that may be confidential, proprietary copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please immediately return this by e-mail and then delete it. ============================================================================= -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._