Skip to content
Prev 307619 / 398506 Next

Exporting summary plm results to latex

On Oct 10, 2012, at 4:45 PM, Sebastian Barfort wrote:

            
Last year Mark Difford offered code to do that.
	From: 	Mark Difford <mark_difford at yahoo.co.uk>
	Subject: 	Re: [R] Latex Table Help on R
	Date: 	July 21, 2011 12:55:02 AM PDT
	To: 	r-help at R-project.org help <r-help at r-project.org>
#------------------
Jim,

You need to use "underset," a LaTeX command. The bare-bones call is
$\underset{}{}$, where the underset value goes in the first curly and your
main value goes in the second curly (i.e. is typeset above the underset).

I don't use xtable but rather use [Ron:sic] Harrell's functions in Hmisc package,
then pass it through his latex() function, so can't take you further.

##
paste('$\\underset','{',data$SDs,'}','{',data$means,'}$', sep="")
#------------------


I sent Mark a correction at the time because it is Frank Harrell's package ... not Ron.

Frank's web page on literate program can be very useful.
http://biostat.mc.vanderbilt.edu/wiki/Main/StatReport
David Winsemius, MD
Alameda, CA, USA