[Rd] printing coefficients with text

From: Ross Boylan <ross_at_biostat.ucsf.edu>
Date: Thu 30 Nov 2006 - 20:17:55 GMT


I want to print the coefficient estimates of a model in a way as consistent with other output in R as possible. stats provides the printCoefmat function for doing this, but there is one problem. I have an additional piece of textual information I want to put on the line with the other info on each coefficient.

The documentation for printCoefmat says the first argument must be numeric, which seems to rule this out.

I just realized I might be able to cheat by inserting the text into the name of the variable (fortunately there is just one item of text). I think that's in the names of the matrix given as the first argument to the function.

Are there any better solutions? Obviously I could just copy the method and modify it, but that creates duplicate code and loses the ability to track future changes to printCoefmat.

Thanks.
Ross Boylan



R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Fri Dec 01 07:27:18 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 Fri 01 Dec 2006 - 17:30:49 GMT.

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