The mutolabr R package provides convenient functions frequently used in mutolab. This package includes functions to:
- Conduct frequentist and Bayesian t-tests with effect size estimation (
t_test_all). - Perform correlation tests or partial correlation tests using frequentist and Bayesian methods for all variables in a given dataset (
cor_test_all,pcor_test_all). - Perform contrast tests using frequentist method (
contrast_test). - Compute summary statistics for a single variable, including the highest density interval (
hdi), mode (mode_stat), population variance (var_desc), and population standard deviation (sd_desc). - Calculate the probability of direction (pd) from MCMC samples of a posterior distribution.
- Retrieve a list of currently loaded R packages along with their versions (
loaded_packages_version).
You can install mutolabr from GitHub using devtools:
# Install devtools if not already installed
if (!requireNamespace("devtools", quietly = TRUE)) install.packages("devtools")
# Install mutolabr
devtools::install_github("mutopsy/mutolabr")This package requires:
- R (>= 4.1.0)
dplyrtidyrBayesFactoreffectsizewithrggplot2
After installation, you can load this package using the library function.
library(mutolabr)For details on each function, refer to the function references.
t_test_all: Perform Frequentist and Bayesian t-tests with Effect Size Estimation [Document]t_test_all_tidy: Perform Frequentist and Bayesian t-tests with Effect Size Estimation from Tidy Data [Document]t_test_all_tidy_grouped: Run multiple t-tests by groups on tidy data [Document]cor_test_all: Perform Correlation Tests with Frequentist and Bayesian Methods [Document]pcor_test_all: Perform Partial Correlation Tests with Frequentist Methods [Document]contrast_test_tidy: Planned contrast test for tidy-format data using explicit sum-of-squares decomposition [Document]summary_generalTestBF: Summarize Results fromgeneralTestBF(beta version) [Document]anovakun_: Perform ANOVA using the anovakun procedure (version 4.8.9). [Document]- Note: This function is a direct copy of
anovakun, developed by Prof. Ryuta Iseki. Redistribution and minor modifications are permitted under the original author's policy, provided that such modifications are clearly stated.
- Note: This function is a direct copy of
anovakun_tidy: A wrapper for anovakun with improved usability and formatting. [Document]anova_bf: Perform Bayesian ANOVA Using generalTestBF. [Document]
summary_stat: Compute Summary Statistics [Document]var_desc: Compute Population Variance [Document]sd_desc: Compute Population Standard Deviation [Document]mode_stat: Compute the Mode of a Distribution [Document]p_to_holmalpha: Compute step-down critical alpha values using Holm's method [Document]hdi: Compute the Highest Density Interval (HDI) [Document]pdir: Probability of Direction (pd) Calculation [Document]
visualangle: Compute visual angle or stimulus size in pixels [Document]radian_to_degree: Convert radians to degrees [Document]degree_to_radian: CConvert degrees to radians [Document]diaginch_to_cm: Convert Display Diagonal Size (inch) to Width and Height (cm) [Document]theme_gg0: A Default ggplot2 Theme [Document]
See the Changelog on pkgdown site for the full changelog.