Skip to content
Prev 4875 / 10988 Next

[Rcpp-devel] How to increase the coding efficiency

this part will always make your code crawl along:

On Wed, Dec 5, 2012 at 11:09 AM, Honglang Wang
<wanghonglang2008 at gmail.com>wrote:

            
first time I wrote a GLM engine, I wrote it the way statistics books
illustrate it (i.e. actually invert things to do IWLS) and it crawled.  I
took it to a physicist friend who went through alternate stages of disgust
and laughter then told me never to invert anything I didn't have to.

You should take Doug Bates' advice, it could save you a great deal of time.
 Never bit fiddle when you can use a better algorithm.