On Fri, 23 May 2008, Sven Schreiber wrote:
Am 23.05.2008 20:50, Allin Cottrell schrieb:
> Should be OK in CVS and Windows snapshot.
>
Yes it looks like it, thanks.
Good.
However, another new problem just appeared...
matrix hausmanresult = $hausman
pvalue X hausmanresult[1,2]-1 hausmanresult[1,1]
-- and this now gives an "invalid argument" error (it didn't in
1.7.4)...
Oof, this is to do with a change I introduced at Stefano's
behest: not "casting" 1x1 matrix results to scalars automatically.
I'll have to think about that some more.
BTW, on various occasions I noticed that arithmetic expressions
cannot always be used in place of simple variables. But
sometimes it does seem to work. Is there some rule when it
should work, or is it sheer luck when it does?
In general, arbitrary arithmetic should work for arguments to
built-in functions (or user-defined functions for that matter),
while it's not very likely to work for arguments to straight
"commands". However, in this particular case using the pvalue
function won't help, right now, since it's a matrix/scalar thing.
I'll try to fix this properly for 1.7.5.
Allin.