I am trying to run Mann-Whiteney-U test with following code:
package main
import (
"fmt"
"stats"
)
func main() {
e, _ = MannWhitneyUTest([]float64{1, 2, 3, 4, 5},
[]float64{1, 2, 3, 5, 6},
0)
fmt.Println("Mann-WhitneyUTest: ", e)
}
However, this gives me this error:
$ go run mainstats2.go
mainstats2.go:5:2: cannot find package "stats" in any of:
/usr/local/go/src/stats (from $GOROOT)
/home/iuser/go/src/stats (from $GOPATH)
I have following stats packages installed:
$ go list all | grep stats
github.com/montanaflynn/stats
github.com/montanaflynn/stats/examples
golang.org/x/perf/internal/stats
golang.org/x/perf/vendor/github.com/aclements/go-moremath/stats
golang.org/x/perf/vendor/google.golang.org/grpc/stats
I need stats package golang.org/x/perf/ which I had installed by command: go get golang.org/x/perf/internal/stats
I believe this package is already there in go installation and was not needed to be installed separately.
How do I solve this problem? Thanks for your help.