I am using this package to get correlation coefficient : https://godoc.org/gonum.org/v1/gonum/stat#Correlation
It works well but it does not give P value of the correlation. Other functions in this package are given above on the same page: https://godoc.org/gonum.org/v1/gonum/stat
Similarly, this package also has correlation function which returns coefficient but not P value.
How can I find P value of correlation coefficient in any of these situations? Thanks for your help.
However, under the usual assumptions people tend to use for this situation, when testing a null of 0 correlation, it's reasonably simple to use a transformation to Student-t.
$t_{n-2}=r{\sqrt {\frac {n-2}{1-r^{2}}}}$
– Glen_b Sep 08 '19 at 08:01Go language: https://golang.org/ – rnso Sep 08 '19 at 08:09