On Fri, Jul 15, 2011 at 8:08 AM, Summers, Peter <psummers(a)highpoint.edu> wrote:
"Attached is a copy of the script I've been working on, along with a
data set. Once I got the main program to work, I just copied the
relevant parts into the function at the top. Just uncomment the
function call (and comment out the rest) to switch back & forth."
Thanks, Peter. The script as sent fails with the message
'realtbill' is not the name of a variable
And indeed, that name is undefined. I substituted "tbill" (the name of a series
in your data file) for "realtbill" and the script runs OK. The inline or
non-function version of the script gives a "teststat" value of -4.9584.
If I modify the script to run the function instead of the inline code
it also gives -4.9584.
I edited the script a little to make toggling between function and inline
a bit easier, and I've attached my version.
Allin Cottrell