Ordinary-least-squares bivariate regression in Go.
To use what's already created:
- First install
go get github.com/w-decker/olsgo@latest- Then import like you would any other library
package main
import "github.com/w-decker/olsgo"- Go to the example to see how to execute
olsgoand get some output.
.txtfile
OLSGO Output
Intercept: 46.0917 B1: 0.1461 Pearson's r: 0.9471 Residual variance: 0.1030 - Some plots (more coming later)
![[Raw data]](/w-decker/olsgo/raw/main/example/plot.png)