[R] finding out more about an object, e.g. lm

Spencer Graves spencer.graves at pdf.com
Tue Jul 5 17:58:37 CEST 2005

	  'methods(class="lm")' will identify all the "methods" (i.e., 
functions) that have been defined to do something with an object of 
class "lm".

	  'attributes(<and 'lm' object>)' may not be as good as "str" from some 
perspectives but can be useful from others.

	  spencer graves

Barry Rowlingson wrote:

> Sean O'Riordain wrote:
>>?lm doesn't
>>give me the information
>   That's because the information has come from 'summary' (specifically 
> summary.lm).
> ?summary.lm:
> r.squared: R^2, the "fraction of variance explained by the model",
>   - it also lists the other things of interest you can get from an lm 
> fitted object.
> Baz
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Spencer Graves, PhD
Senior Development Engineer
PDF Solutions, Inc.
333 West San Carlos Street Suite 700
San Jose, CA 95110, USA

spencer.graves at pdf.com
www.pdf.com <http://www.pdf.com>
Tel:  408-938-4420
Fax: 408-280-7915

More information about the R-help mailing list