Automatically select and run the best statistical test for your data with just one line of code. Supporting one-sample-tests, two-sample-tests, multiple-sample-tests, and even correlations! automatedtests
automatedtests
is an R package designed to simplify statistical testing. It automatically analyzes your data, determines the most fitting statistical test (based on structure and content), and executes it. shortening the time spent deciding what test to use.
The package supports tidy data frames and a set of numeric/categorical vectors! non tidy data will have to be reshaped.
AutomatedTest
object with many different results including the full test $get_result()
.You can install the package from CRAN:
install.packages("automatedtests") # Load library library(automatedtests)
# Automatically runs appropriate test(s) on the cars dataset test1 <- automatical_test(cars) # Get quick overview test1 # Get detailed results test1$get_result()
# Compare Sepal.Length across Species test2 <- automatical_test(iris$Species, iris$Sepal.Length) test2$get_result()
# Compare a numeric vector to a fixed value automatical_test(c(3, 5, 4, 6, 7), compare_to = 5)Argument Description
...
A data frame or multiple equal-length vectors compare_to
Value to compare against in one-sample tests (numeric or assumed uniform for categorical data) identifiers
Logical; if TRUE, the first column is treated as identifiers and excluded from testing paired
Logical; if TRUE, the test will become paired, by default FALSE
Returns an object of class AutomatedTest
with methods and properties like:
print(object)
- overview of executed test and its results.$get_result()
- detailed summary of the test performed, containing all information including p.value, statistics etc.$get_test()
- test type selected$is_parametric()
- Whether the numeric feature were parametric$is_paired()
- Returns if a paired test was used.$get_strength()
- Shows the strength of the test/correlation. This is a different kind of value for each test. It will also return what the value is. These are the different types of data it can return:coefficient – strength and direction of predictor effects
r – strength and direction of correlation
mean difference – size of difference between group means
statistic – test statistic indicating group difference or association
F statistic – variance ratio across group means
proportion – estimated proportion of successes in a sample
non-existent – no interpretable strength measure available
$get_parametric_list()
- Returns a list of all numeric features' distributions and the parametric tests used.$get_datatypes()
- Shows what type of data the features used in the corresponding test contain.$is_significant()
- TRUE/FALSE if result is statistically significant (p.value < 0.05), to show the result in the blink of an eye!# Automated Test: # Data: speed, dist # Test: Spearman's rank correlation # Test: Spearman's rank correlation # Results: # p.value: 8.824558e-14 # Strength: r = 0.83 # Significant: TRUEMethod to choose stastitical test
These are automatically handled during installation.
Wouter Zeevat
This package is licensed under the GPL-3 License.
You can freely use, modify, and redistribute the software under the terms of the GNU General Public License v3 (GPL-3). The key conditions of the GPL-3 license are:
For more information, see the full GPL-3 License.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4