significance tests
Opened this issue · 3 comments
matt-long commented
For our statistics functions, like weighted_cor
it would be nice to enable computing significance metrics (p-value...).
@bradyrx, perhaps you can help with this?
bradyrx commented
@matt-long, yes I'd be happy to open a PR on this. Are you trying to keep esmlab
slim on dependencies?
xskillscore
has a pearson_r_p_value function that is based in numpy and written as an xarray
ufunc. Although this only allows a two-tailed test.
I can also port over some functions from climpred
(https://github.com/bradyrx/climpred/blob/master/climpred/stats.py) which accounts for autocorrelation in the time series by computing the effective sample size (Bretherton et al. 1999).
matt-long commented
I am fine with dependencies as long as they are good ones.