Skip to content

yl4070/AlgebraOfInference

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AlgebraOfInference.jl

CI

In early developments!

Provide unified algebra like syntax for hypthosis testing, inspired by AlgebraOfGraphics.jl and R package infer.

The goal of the package is to provide a new interface to HypothersisTest.jl and also a wrapper of testings from R via RCall.jl.

Features

  • @formula expression support
  • composable testing constructions

Quick Starts

Any data source that supports Tables.jl interface will work.

To run a test, first specify variable to be used in testing, and multiple specifications can be added together.

specs = specify(@formula(a ~ b)) + specify(:a, :c)

The same is hypothesis tests, theorectically, it should work with all tests from HypothesisTests.jl. Incorporate more tests.

tests = testwith(EqualVarianceTTest) + testwith(UnequalVarianceTTest)

Then, p-value can be calculated together:

tbl = (a = rand(100), b = repeat(1:2, inner = 50), c = rand(100))
test_specs = specs * tests
test_specs(tbl) .|> pvalue

Table outputs

Powered by SummaryTables.jl, the test outputs can be easily collected into one table:

test_specs(tbl) |> table

table

To-Dos

  • Nicer printing
  • Nice looking tabel outputs
  • Optimize code
  • Import test from R
  • Refine interface
  • Documentations
  • More series testing

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages