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

2024-09-06 Thread Koenker, Roger W
Apologies, forgot to copy R-help on this response. Begin forwarded message: From: Roger Koenker 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" Chris, This was intended to emulate the

Re: [R] Stata/Rstudio evil attributes

2021-04-10 Thread Koenker, Roger W
us again how much you paid > for the use of the haven package? > > Best, > Wolfgang > >> -Original Message- >> From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Koenker, >> Roger W >> Sent: Saturday, 10 April, 2021 11:26 >>

[R] Stata/Rstudio evil attributes

2021-04-10 Thread Koenker, Roger W
As shown in the reproducible example below, I used the RStudio function haven() to read a Stata .dta file, and then tried to do some fitting with the resulting data.frame. This produced an error from my fitting function rqss() in the package quantreg. After a bit of frustrated cursing, I conve

Re: [R] build a literature database

2020-11-04 Thread Koenker, Roger W
You might also want to take a look at this survey: https://ropensci.org/technotes/2020/05/07/rmd-citations/ > On Nov 4, 2020, at 9:22 AM, John wrote: > > Hi, > > I 'd like to create a table for literature review. Is there any good > data structure (database) I may use? Now I just use a simp

Re: [R] formula mungeing

2020-10-23 Thread Koenker, Roger W
{ > e <- eval(e, list(...)) >} >if (length(e) > 1) for (i in 1:length(e)) e[[i]] <- Recall(e[[i]], ...) >} >e > } > > g(f, lambdas = 2:3) > ## y ~ qss(x, lambda = 2L) + qss(z, 3L) + s > > On Fri, Oct 23, 2020 at 9:33

[R] formula mungeing

2020-10-23 Thread Koenker, Roger W
Suppose I have a formula like this: f <- y ~ qss(x, lambda = lambdas[1]) + qss(z, lambdas[2]) + s I’d like a function, g(lambdas, f) that would take g(c(2,3), f) and produce the new formula: y ~ qss(x, lambda = 2) + qss(z, 3) + s For only two qss terms I have been using

Re: [R] jitter-bug? problematic behaviour of the jitter function

2020-09-24 Thread Koenker, Roger W
FWIW, there is a similar function called “dither” in the quantreg package. > On Sep 24, 2020, at 8:08 AM, Martin Keller-Ressel > wrote: > > Dear Duncan, Dear Rui, > > thanks for the responses and for pointing out that it is the ‚fuzz‘ part that > is causing the problem. I agree that this is n

Re: [R] formula wrangling

2020-09-21 Thread Koenker, Roger W
X <- cbind(X, xss[[i]]) # Here is the problem } } > On Sep 21, 2020, at 9:52 AM, Koenker, Roger W wrote: > > I need some help with a formula processing problem that arose from a > seemingly innocuous request > that I add a “subset” argument to the additive m

[R] formula wrangling

2020-09-21 Thread Koenker, Roger W
I need some help with a formula processing problem that arose from a seemingly innocuous request that I add a “subset” argument to the additive modeling function “rqss” in my quantreg package. I’ve tried to boil the relevant code down to something simpler as illustrated below. The formulae in

Re: [R] My dream ...

2020-05-11 Thread Koenker, Roger W
Definitely a fortune: "the advantage of computers is not Artificial Intelligence, but rather Artificial Patience" Greg Snow in response to a question about automated R-analysis. Roger Koenker r.koen...@ucl.ac.uk Honorary Professor of Economics Department of Economics,

Re: [R] Summary Table for Quantile Regression for Complex Survey

2019-07-16 Thread Koenker, Roger W
try summary(newer, se = “nid”) Roger Koenker r.koen...@ucl.ac.uk Department of Economics, UCL London WC1H 0AX. On Jul 16, 2019, at 2:46 AM, Mavra Ahmed mailto:mavz.ah...@utoronto.ca>> wrote: Hello All, I am running quantile regression for a complex survey design