Re: [R] help speeding up simple Theil regression function

2012-10-21 Thread Brad Schneid
rect answer in most cases. > > Bill Dunlap > Spotfire, TIBCO Software > wdunlap tibco.com > > >> -Original Message----- >> From: > r-help-bounces@ > [mailto: > r-help-bounces@ > ] On Behalf >> Of Berend Hasselman >> Sent: Sunday, Oct

Re: [R] help speeding up simple Theil regression function

2012-10-21 Thread William Dunlap
he function will fail to give the correct answer in most cases. Bill Dunlap Spotfire, TIBCO Software wdunlap tibco.com > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On > Behalf > Of Berend Hasselman > Sent: Sunday, October

Re: [R] help speeding up simple Theil regression function

2012-10-21 Thread Brad Schneid
Wow. Thank you greatly, that is amazing. Thiel statistic ==> (Pedantic comment: it is Theil (swap the i and e) Yes sir; I do that every time. Dyslexia perhaps? Thanks again. Berend Hasselman wrote > On 21-10-2012, at 20:06, Brad Schneid wrote: > >> Hello, >> >> I am working on a simple

Re: [R] help speeding up simple Theil regression function

2012-10-21 Thread Berend Hasselman
On 21-10-2012, at 20:06, Brad Schneid wrote: > Hello, > > I am working on a simple non-parametric (Theil) regression function and and > am following Hollander and Wolfe 1999 text. I would like some help making > my function faster. I have compared with pre-packaged version from "MBLM", > which

Re: [R] help speeding up simple Theil regression function

2012-10-21 Thread Brad Schneid
Obviously sort() is not needed in the following line: X <- median( sort( do.call(c, num) / do.call(c, dom) ) ) Brad Schneid wrote > Hello, > > I am working on a simple non-parametric (Theil) regression function and > and am following Hollander and Wolfe 1999 text. I would like some help

[R] help speeding up simple Theil regression function

2012-10-21 Thread Brad Schneid
Hello, I am working on a simple non-parametric (Theil) regression function and and am following Hollander and Wolfe 1999 text. I would like some help making my function faster. I have compared with pre-packaged version from "MBLM", which isnt very fast either, but it appears mine is faster with