On Wed, 30 Nov 2011, Henrique Andrade wrote:
I think I found a little error in the example of the
"printf" command help:
<hansl>
ols 1 0 2 3
genr b = $coeff(2)
genr se_b = $stderr(2)
printf "b = %.8g, standard error %.8g, t = %.4f\n", b, se_b, b/se_b
</hansl>
If we use "[ ]" instead of "( )" the error goes away :-)
You're right, thanks. That's now fixed. The syntax $coeff()
can be used when referring to a coefficient by the name of the
associated variable, as in "$coeff(price)", but not when using
the numerical position in the array.
Allin Cottrell