kbstat

Statistical Tools

https://github.com/kimbostroem/kbstat

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (11.7%) to scientific vocabulary
Last synced: 6 months ago · JSON representation ·

Repository

Statistical Tools

Basic Info
  • Host: GitHub
  • Owner: kimbostroem
  • License: mit
  • Language: MATLAB
  • Default Branch: master
  • Size: 16.2 MB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 2
Created over 3 years ago · Last pushed 7 months ago
Metadata Files
Readme Changelog License Citation

README.md

kbstat

A highly configurable statistical library to perform script-based generalised linear model analysis and post-hoc testing. Results and diagnostic plots are saved as Excel and CSV tables, MATLAB, PNG and PDF figures and TXT files to a directory of choice.

Disclaimer

This library come without any warranty and is for free use only. See the LICENSE file in the root folder.

The library uses an adaptation of Bastian Bechtold's Violin plot library, available at https://github.com/bastibe/Violinplot-Matlab, for plotting and John Hartman's emmeans library, available at https://de.mathworks.com/matlabcentral/fileexchange/71970-emmeans, for post-hoc analysis.

How to use

Analysis is performed by calling the script kbstat with an options structure as the only argument. For the vailable options, see the header in kbstat. Before calling the script, the library folder including subfolders must be added to the search path.

Example

In MATLAB, change to the demo folder and run the kbstat_demo script. The demo script illustrates the GLM analysis of artificially generated data for the fictional scenario of male and female athletes performing long jumps with and without having eaten chocolate beforehand. The results are stored in a folder called Results, which is created if it does not exist, otherwise its contents are overwritten.

Here is a minimal example:

matlab options = struct; % Init empty structure options.inFile = 'Data.csv'; % Relative path to input file in long format as CSV table options.outDir = 'Results'; % Relative path to output folder options.y = 'Distance'; % Dependent variable of model options.yUnits = 'm'; % Units of dependent variable options.x = 'Factor1, Factor2'; % Fixed-effect variables options.id = 'Subject'; % Random-effect variable kbstat(options); % Call main script with the given options The demo script produces several files, in particular the data plot,

DataPlots

and the diagnostic plot

Diagnostics

How to cite

When using this script in your publications, cite it using the following APA citation or its equivalent:

Bostroem, K. J. (2024). kbstat (Version 1.0.0) [Computer software]. https://github.com/kimbostroem/kbstat

Owner

  • Name: Kim Joris Boström
  • Login: kimbostroem
  • Kind: user
  • Location: Münster, Germany
  • Company: Predimo GmbH

PhD in theoretical physics (quantum mechanics). Post-Doc in neuroscience and movement science. Working and living in Münster, Germany.

Citation (CITATION.cff)

cff-version: 1.2.0
type: software-code
authors:
  - family-names: Bostroem
    given-names: Kim Joris
    orcid: https://orcid.org/0000-0001-5966-458X
title: "kbstat"
version: 1.0.0
date-released: 2024-09-27
repository-code: https://github.com/kimbostroem/kbstat
programming-languages: 
  - matlab

GitHub Events

Total
  • Release event: 1
  • Push event: 78
  • Create event: 2
Last Year
  • Release event: 1
  • Push event: 78
  • Create event: 2