paleolimbot / tidystats

Tidy data port of the stats package
3 stars 0 forks source link

tidystats

Coverage Status Travis build status

The goal of tidystats is to provide a "tidy-in, tidy-out" interface to statistical tests, including implementations for many tests in the stats package. Generally, a test object will get created using columns from a (tidy) data.frame. For example, a t-test using the sleep dataset would look like this:

head(sleep)
#>   extra group ID
#> 1   0.7     1  1
#> 2  -1.6     1  2
#> 3  -0.2     1  3
#> 4  -1.2     1  4
#> 5  -0.1     1  5
#> 6   3.4     1  6
test <- tidy_t_test(sleep, values = extra, groups = group)

Installation

You can install tidystats from github with:

# install.packages("devtools")
devtools::install_github("paleolimbot/tidystats")

Philosophy

The (currently loose) philosphy of this package is to make statistics easier to teach by using consistent terminology and syntax across functions. So far, the loose set of rules is as follows:

Contributing

Please contribute to this package! I imagine there are a lot of ideas of how to go about this, and now is a great time to try all of them.