[R] Is there a "latex" summary function in the quantreg package for just 1 tau?

Frank Harrell f.harrell at vanderbilt.edu
Tue Sep 27 23:33:41 CEST 2011


Tal,

require(rms)
f <- Rq(....)
print(f, latex=TRUE)
latex(f)

Frank

Tal Galili wrote:
> 
> Hello dear R help members,
> 
> I wish to get a nice LaTeX table for a rq object.
> Trying to use the functions I found so far wouldn't work.  I can
> start opening the functions up, but I am wondering if I had missed some
> function which is the one I should be using.
> 
> Here is an example session for a bunch of possible errors:
> 
> (Thanks)
> 
> 
> data(stackloss)
> y <- stack.loss
> x <- stack.x
> rq_object <- rq(y ~ x, tau = .5)
> rq_object_summary <- summary(rq_object)
> 
> latex(rq_object)
> # Error in UseMethod("latex") :
> #   no applicable method for 'latex' applied to an object of class "rq"
> latex(rq_object_summary)
> # Error in UseMethod("latex") :
> #   no applicable method for 'latex' applied to an object of class
> "summary.rq"
> latex.summary.rqs(rq_object_summary)
> # Error in x$tau : $ operator is invalid for atomic vectors
> summary.rqs(rq_object)
> # Error in xi$coefficients[, i] : incorrect number of dimensions
> summary.rqs(rq_object_summary)
> # Error in xi$residuals[, i] : incorrect number of dimensions
> 
> 
> 
> ----------------Contact
> Details:-------------------------------------------------------
> Contact me: Tal.Galili at gmail.com |  972-52-7275845
> Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) |
> www.r-statistics.com (English)
> ----------------------------------------------------------------------------------------------
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at r-project.org 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.
> 


-----
Frank Harrell
Department of Biostatistics, Vanderbilt University
--
View this message in context: http://r.789695.n4.nabble.com/Is-there-a-latex-summary-function-in-the-quantreg-package-for-just-1-tau-tp3849118p3849237.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list