Friday, January 13, 2012

minNforHDIpower.R updated

In Chapter 13, program minNforHDIpower.R is used to compute the minimum sample size needed for desired power. The program that was previously posted had a few glitches that have now been corrected. (Specifically, the source()-ing HDIofICDF.R needed quotes, and the call to HDIofICDF needed to include the argument credMass=HDImass. I also modified the condition at the beginning to use xor().) The results reported in the book are correct. You can download the updated program from the link in the book website.

If there are still any problems, please let me know.

Many thanks to Nico Corea for bringing this issue to my attention.

1 comment:

  1. You should consider creating a public source code repository for the book on github or bitbucket. That would make it much easier for readers to stay up to date with the latest version and to maintain local patches to the official versions.