Skip to content

mutopsy/mutolabr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

162 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mutolabr: Convenient R Functions Frequently Used in mutolab

Overview

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).

Installation

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")

Dependencies

This package requires:

  • R (>= 4.1.0)
  • dplyr
  • tidyr
  • BayesFactor
  • effectsize
  • withr
  • ggplot2

Usage

After installation, you can load this package using the library function.

library(mutolabr)

List of Functions

For details on each function, refer to the function references.

Statistical Tests

  • 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 from generalTestBF (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.
  • anovakun_tidy: A wrapper for anovakun with improved usability and formatting. [Document]
  • anova_bf: Perform Bayesian ANOVA Using generalTestBF. [Document]

Compute Summary Statistics

  • 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]

Others

  • 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]

Version History

See the Changelog on pkgdown site for the full changelog.

About

Convenient R Functions Frequently Used in mutolab

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages