Skip to content

inconsistency or bug in coef() (PR#9358)

1 message · Brian Ripley

#
On Mon, 13 Nov 2006, rmh at temple.edu wrote:

            
That claim is false: it is print.summary.lm that is giving two lines, not 
the result of summary.lm: try

unclass(summary(tmp.lm))

This is also clear from the Value section of ?summary.lm, whose See Also 
says

      Function 'coef' will extract the matrix of coefficients with
      standard errors, t-statistics and p-values.

The point is that the print method is making use of both the $coefficients 
and the $aliased components.

I really do think this is clear from reading the help page: did you 
actually cross-check before sending a bug report?