gofactan

package module
v0.0.0-...-44d479e Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2022 License: GPL-2.0 Imports: 8 Imported by: 0

README

Golang Factor Analysis

This is a Go module for performing exploratory factor analysis (EFA). Inspired by and borrowing from Python library FactorAnalyzer by EducationalTestingService.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CSVToMatrix

func CSVToMatrix(path string, dropHeader bool) (*mat.Dense, error)

func CalculateBartlettSphericity

func CalculateBartlettSphericity(x *mat.Dense) (statistic, pvalue float64)

func CalculateKMO

func CalculateKMO(x *mat.Dense) (kmoPerVariable *mat.VecDense, kmoTotal float64, err error)

func CorrMartix

func CorrMartix(x mat.Matrix) *mat.Dense

func Cov2Corr

func Cov2Corr(x mat.Matrix) (*mat.Dense, error)

func CovMartix

func CovMartix(x mat.Matrix) *mat.Dense

func PartialCorr

func PartialCorr(x mat.Matrix) (*mat.Dense, error)

Types

type Factor

type Factor struct {
	Cfg FactorConfig
}

func NewFactor

func NewFactor() *Factor

func (*Factor) Fit

func (f *Factor) Fit(x mat.Matrix) error

type FactorConfig

type FactorConfig struct {
	NFactors     int
	Rotation     string
	Method       string
	UseSMC       bool
	IsCorrMatrix bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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