Skip to content

Regression Summary for a List

2 messages · Ryan J. McGuigan, Phil Spector

#
Ryan -
    summary expects an lm object, and fit is a list.  So
you need to use something like

    lapply(fit,summary)

to pass each list element to the summary function.

 					- Phil Spector
 					 Statistical Computing Facility
 					 Department of Statistics
 					 UC Berkeley
 					 spector at stat.berkeley.edu
On Fri, 29 Apr 2011, Ryan J. McGuigan wrote: