Search

Chaps

Sweet sweet memories

Blather

Uptime verified by Wormly.com

22 May 2008

Bugs and Bugs

I've been a software developer of some description for a fair while, and I've authored at least my fair share of bugs. But my new worst bug I discovered yesterday. It was in code for a published economic paper.

This is the original code:

gen w01ceil = w11ceil + (1-mrw_alpha) * pr * (1-coerc_pi01) + (1-pr)*coerc_pi10

This is the correct code:

gen w01ceil = w11ceil + (1-coerc_alpha) * pr * (1-coerc_pi01) + (1-pr)*coerc_pi10

I'm sure I originally had it right and changed it at some later point for testing. I just didn't change it back. Luckily, although the correct1 results are fairly different, they still support the point we're trying to make.

  1. "Correct" as of 22nd May 2008.

Comments

No comments yet.

Leave a comment

Markdown
  • **bold text**
  • *italicized text*
  • > This text is blockquoted
  • * This is an unordered list item
  • 1. This is an ordered list item
  • [Link Text](http://www.example.com/)
  • `code item`

0.292 seconds