Skip to content

R quantreg anova: How to change summary se-type

2 messages · Roger Koenker, Stefan Voigt

#
Stefan,

You could try this:  make a private version of anova.rqlist  and change the call to lapply
that computes summaries  so that se = "ker" instead of se = "nid".  Please let me know
if this does what you would like to do.  This is about 20 lines into the code.

Could you also explain what you mean by 
"leads to mistakes"  below?

Thanks,
Roger

url:    www.econ.uiuc.edu/~roger            Roger Koenker
email    rkoenker at uiuc.edu            Department of Economics
vox:     217-333-4558                University of Illinois
fax:       217-244-6678                Urbana, IL 61801
On May 28, 2012, at 7:54 AM, stefan23 wrote:

            
#
Hi Roger,
thank you very much for your fast response. First of all, the mistakes I 
mentioned are all of the sam type:" In summary.rq(x, se = "nid", 
covariance = TRUE) : 22 non-positive fis". That is the reason why I want 
to change the se-procedure as I made the experience that there problem 
disappears by using se="ker".
But unfortunately I am not able to following your answer as I do not 
have so much experience with R. I changed the summary.rq so that the 
procedure is calculated by using se="ker" as default, but anova.rq seems 
not to react on this change. How can I produce my private version? Do I 
have to generate my own quantreg package?
Thank you very much for you help
cheers
Stefan

Am 28.05.2012 19:05, schrieb Roger Koenker: