Fixes an acknowledged bug in pmtm.m wherein the chi-squared confidence limits are incorrectly computed.
Also, a plotting option is included which displays the confidence interval using background shading and which provides a visual indicator of the bandwidth size.
Nice code; just what I needed. The reference to Percival and Walden (1993) on line 88 has an empty space where the page number should be. It is p. 370.