[R] Fwd: effects() extractor for a quantile reqression object: error message

Koenker, Roger W
Fri, 06 Sep 2024 08:37:54 -0000

Apologies,  forgot to copy R-help on this response.

Begin forwarded message:


From: Roger Koenker <rkoenker at illinois.edu>
Subject: Re: [R] effects() extractor for a quantile reqression object: error
message
Date: September 6, 2024 at 8:38:47?AM GMT+1
To: "Christopher W. Ryan" <cryan at binghamton.edu>

Chris,

This was intended to emulate the effects component of lm() fitting, but was
never implemented.  Frankly, I don?t quite see on first glance how this works
for lm() ? it seems to be (mostly) about situations where X is not full rank
(see lm.fit) and I also never bothered to implement rq for X that were not full
rank.

Roger


On Sep 6, 2024, at 3:50?AM, Christopher W. Ryan via R-help <r-help at
r-project.org> wrote:

I'm using quantreg package version 5.98 of 24 May 2024, in R 4.4.1 on
Linux Mint.

The online documentation for quantreg says, in part, under the
description of the rq.object, "The coefficients, residuals, and effects
may be extracted by the generic functions of the same name, rather than
by the $ operator."

I create an rq object for the 0.9 quantile, called qm.9

effects(qm.9)

yields, the error message, " effects(qm.9)
Error in UseMethod("effects") :
no applicable method for 'effects' applied to an object of class
"rq"

I'm confused. Appreciate any suggestions. Thanks.

--Chris Ryan

______________________________________________
R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://urldefense.com/v3/__https://stat.ethz.ch/mailman/listinfo/r-help__;!!DZ3fjg!8EOq_-vshoZYLg-FZREULmFkpvaXrZ6aw5ABLzjX4aq3XNvoDxGipcY73SPgiBQasfWdncPj7J2odYZKU3BD$
PLEASE do read the posting guide
https://urldefense.com/v3/__https://www.R-project.org/posting-guide.html__;!!DZ3fjg!8EOq_-vshoZYLg-FZREULmFkpvaXrZ6aw5ABLzjX4aq3XNvoDxGipcY73SPgiBQasfWdncPj7J2odY7Gv6_Z$
and provide commented, minimal, self-contained, reproducible code.



	[[alternative HTML version deleted]]