Am 14.06.2016 um 16:05 schrieb Riccardo (Jack) Lucchetti:
On Tue, 14 Jun 2016, Allin Cottrell wrote:
> In general, built-in functions don't print anything, so it would be
> the code that calculates tau and its associated z-value that would
> have to be hooked up; printing would be skipped.
>
> There are two ways we could give access to Kendall's tau and
> Spearman's rho: we could add a third, optional argument to the corr()
> function to select a variant other than Pearson, or we could add a
> --quiet option to the "corr" command and make it store $test and
> $pvalue, so you could use it in function-like mode.
I'd fabvour the former (third optional argument).
I guess I agree.
Out of curiosity: What's the list of necessary ingredients in an
existing analogous case? For example take the cum() function (just a
random pick, maybe there are better examples). What's the underlying
function doing the actual calculation, and what's the "glue code" that
does the handshake to hansl (checking for matrices or series, handing
back the results to the gretl user etc.
thanks,
sven