Re: [R] Summary method needed?

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Thu 03 Aug 2006 - 04:29:28 EST

On Wed, 2 Aug 2006, Christian Hennig wrote:

> Hi list,
>
> I'm updating my fpc package at the moment and will add some new functions.
> I learned that there should be print and summary methods for the key
> functions.

for 'classes', I think.

> The purpose of the summary methods seems to be to reduce the
> possibly incredibly complex information in the function's output and the
> print method (print.summary.foo) should print an overview of the result.

Normally, summary() gives more information than print() would give for a non-data object, often by manipulations on the object.

Now, the White Book said that summary produces `a synopsis of an object', but that does not seem to be the practice for model-fitting classes even in the White Book (but it is for data objects).

> But in some cases the print method will make use of more or less all the
> output information of the function. Is there any reason to implement a
> summary method in these cases?

Would a more concise print() method be useful? If so the existing print() could become summary().

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
R-help@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
and provide commented, minimal, self-contained, reproducible code.
Received on Thu Aug 03 09:43:27 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 03 Aug 2006 - 12:18:09 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.