GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - thomasgladwin/teg_RMA: General framework for organizing data for N-way repeated measures analyses in Matlab (and partly Python), including an implementation of repeated measures ANOVA

BranchesTags
Open more actions menu

Latest commit

 

History

40 Commits
40 Commits

Folders and files

NameName
Last commit message
Last commit date
LICENSE
LICENSE
 
 
README.md
README.md
 
 
example_RMA.py
example_RMA.py
 
 
example_regression.py
example_regression.py
 
 
teg_RMA.zip
teg_RMA.zip
 
 
teg_RMA_funcs.py
teg_RMA_funcs.py
 
 
teg_basic_funcs.zip
teg_basic_funcs.zip
 
 
teg_basic_stats.zip
teg_basic_stats.zip
 
 
teg_regression_funcs.py
teg_regression_funcs.py
 
 
tegstats_local.py
tegstats_local.py
 
 

Repository files navigation

teg_RMA

Repeated measures ANOVA in Matlab and (work in progress, with fewer bells and whistles) Python.

For use in Python: pip install tegstats (or use the tegstats_local.py file), and see example_RMA.py for usage. The Python version so far only does pure within-subject analyses and within x between-factor interactions (with an arbitrary number of factors and levels per factor), and has the option to use randomization tests (hope you're not in a hurry though). The package includes the multiple and hierarchical regression function teg_regression (see example_regression.py for usage).

For Matlab, the basic usage is: O = teg_RMA(M, levels, varnames)

with M an observation x nested variable-combinations matrix; levels a vector with the number of levels per variable (from highest to lowest level of nesting); and varnames a cell array of strings.

Interactions are explored by recursively testing the lower-level effects per level of the final factor.

Categorical and continuous between-subject factors can be added. Note that in this implementation, tests are performed per effect separately. So, including a between-subject factor does not affect within-subject tests. Be aware that this differs from the tests in SPSS.

The F-tests for significant effects are reported, together with other statistical measures including partial eta squared estimates of effect size. Various descriptive statistics are given. Note that the p-values printed with means reflects the difference of the raw scores from zero when there is no within-subject factor, and the differences of the scores after subtraction of the subject-mean from zero when there is a within-subject factor.

Set perm_test = 1 in the settings variables at the top of teg_RMA to use randomization and permutation testing to determine p-values (slow but nicely avoids assumptions); set perm_test = 0 otherwise. Set nIts_perm to adjust the number of iterations.

To use the program, you need to download the latest teg_RMA.zip, teg_basic_stats.zip and teg_basic_funcs.zip, unpack them to their own directories, and add them all to the Matlab path.

Please cite as: Thomas Edward Gladwin (2020). An implementation of repeated measures ANOVA: effect coding, automated exploration of interactions, and randomization testing. MethodsX, doi:10.1016/j.mex.2020.100947. https://www.sciencedirect.com/science/article/pii/S2215016120301679?via%3Dihub.

About

General framework for organizing data for N-way repeated measures analyses in Matlab (and partly Python), including an implementation of repeated measures ANOVA

Topics

anovamatlabmeasuresn-waypythonrepeatedrepeated-measures-anovastatistics

Resources

Readme
GPL-3.0 license
Activity

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.