Hello,
this only concerns you if you are using the cnumber.gfn contributed
function package (by Sandro Monsueto).
In the next gretl release (and in the current development versions,
snapshots and git) Allin has added a new built-in function of the same
name "cnumber" which does the same thing and which will automatically be
used instead of the package when you call the function cnumber().
Therefore the cnumber.gfn package will now be removed from the package
server.
The difference between the old packaged function and the new built-in
function is that the former printed out the result as a line of text;
the latter of course just returns the result for further assignment, as
all built-in functions do.
If you rely on the cnumber.gfn package and you cannot wait for the next
gretl release, there are several options:
- keep the cnumber.gfn package which was on your local system
- install the latest snapshot (on Windows or Mac) or compile the latest
source (on Linux)
- substitute the cnumber.gfn package with these few lines of code
suggested by Jack:
<hansl>
function scalar cnumber (matrix X)
X = X ./ sqrt(sumc(X.^2))
lam = eigensym(X'X)
return sqrt(maxc(lam) / lam[1])
end function
</hansl>
Have a good weekend,
Sven
Show replies by date