On Tue, 5 Apr 2016, Henrique Andrade wrote:
Dear Allin,
Thanks a lot for your help. It solved my problem, but I think this is a
situation where we should try to make accessors as universal as possible. I
see no reason to not provide $test and $pvalue in this case ;-)
Well, these would only be applicable in the case where you pass just
two series to the "corr" command (unless we wanted to make this quite
complicated, with $test and $pvalue both being matrices).
One more comment... I think "n = sum(ok(x) &&
ok(y))" is only
correct when x and y have the same size. Am I right?
No, this should pick out the number of observations where we have
valid values for both x and y.
Allin