Tal Galili
2011-Sep-27 21:00 UTC
[R] Is there a "latex" summary function in the quantreg package for just 1 tau?
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@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]]
Frank Harrell
2011-Sep-27 21:33 UTC
[R] Is there a "latex" summary function in the quantreg package for just 1 tau?
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.
Seemingly Similar Threads
- Problem with ols in quantreg package
- Problems producing quantreg-Tables
- 2 problems with latex.table (quantreg package) - reproducible
- blk-mq crash under KVM in multiqueue block code (with virtio-blk and ext4)
- blk-mq crash under KVM in multiqueue block code (with virtio-blk and ext4)