stats

package
v0.0.0-...-775080a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateLearningGains

func CalculateLearningGains(data []Data) (gains []float64, interventions []float64)

Calculate learning gains for control and intervention groups

func ComputePValue

func ComputePValue(beta0, beta1 float64, gains, interventions []float64) float64

func LinearRegression

func LinearRegression(gains, interventions []float64) (beta0, beta1, rSquared float64)

Linear regression function with Gonum

Types

type Data

type Data struct {
	PreControl       float64
	PostControl      float64
	PreIntervention  float64
	PostIntervention float64
}

Data struct to hold the pre- and post-intervention scores

func ReadCSV

func ReadCSV(filePath string) ([]Data, error)

Function to read data from CSV file

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL