Skip to content

metricT

0.2.0Package record

Directional Fragility Diagnostics for EEG Connectivity

0packages depend
153downloads / year
57.0%test coverage
13/13flavors OK

Overview

About

Implements Metric-T, a permutation-based diagnostic that flags when the reported direction of a group difference in electroencephalography (EEG) functional connectivity depends on the choice of metric. Direction consistency (DC) converts the weighted phase lag index (wPLI) and magnitude-squared coherence (MSC), both derived from the same cross-spectrum, into the percentage of channel-pair features for which one group exceeds the other; Metric-T is T = DC(wPLI) - DC(MSC). Significance is assessed by aligned label permutation with marginal and Westfall-Young max-T multiplicity control. For small samples the reference set is enumerated completely: exact two-group tests, the complete two-group labelling space (in which cut-points, exclusions and batches are located on one distribution), and a stratified exact test for a continuous covariate. Core functions use base R only; a 'shiny' graphical interface is included. Method: Kimura (2026) doi:10.1016/j.neuri.2026.100286.

Changes in 0.2.0
  • metric_t(exact = TRUE): complete enumeration of two-group label assignments; p-values, attainable minimum p and Westfall-Young adjustment are computed on the complete set.
  • mt_label_space() and mt_locate(): Metric-T for every two-group labelling of the subjects (2^n - 2), with the effective number of independent features and the share of labellings showing a nominal reversal.
  • metric_t_trend(): Metric-T for a continuous covariate, with exact permutation restricted to strata (for example recording sessions) and joint adjustment over several covariates.
  • mt_clean_epochs(): linear detrending and peak-to-peak rejection of epochs.
  • mt_labelset() / mt_labelings(): enumeration of labellings for ambiguous group membership.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 1.1 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OKNow
  • OK7 OK2026-10-17
Advisories

none known

Documentation

In release 0.2.0
READMEYes · 344 wordsVignettesNoNEWSYes · 100% structured · mentions 0.2.0Citation fileNoWebsitenot declared in DESCRIPTION
Help pages
23
Examples that run
100%23 run in a plain check (1 of them under a condition)
Exported functions with examples
100%
Documented parameters
84%
Return-value docs
100%
Help pages citing references
4%

Downloads

153
CRAN downloads in the past year
Rank #25,590 · ~0/day · ~13/mo
Daily download trend is not available in this view yet.
15330 days
15390 days
1531 year
Compare downloads with other packages →
Also on1 autocran

Repository

0Stars
0Forks
0Open issues
0Open PRs
0Releases
Last activity 2026-10-18 · Default branch at 0.2.1, ahead of CRAN 0.2.0 (checked 2026-10-25)
Responsiveness
not measured
PracticesBeta

1 development-tooling and community-health practice detected across 1 family in the upstream repository

Checks run against github.com/akimura753/metrict on 2026-10-25.

CRAN release process (1)
cran-comments.md
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
2 external dependencies (excludes base and recommended)

Installing metricT adds no packages beyond those that come with R.

Depends (1)
R >= 4.0.0
Imports (4)
statsgraphicsgrDevicesutils
LinkingTo (0)
none
Suggests (2)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

People & History

People (1)
Author, Maintainer since 0.2.0 (2026)
Releases (1)
  • 0.2.0Latest
    2026-10-16 · current release ·
    10 days in CRAN's queue
    Listed in CRAN's incoming queue from 2026-10-06 15:36 to 2026-10-16 07:45 UTC, in 45 readings.
  • R
    R 4.6.0 released · 2026-04-24
Across CRAN, the median accepted release of the past year spent 22 hours in the queue, 90% under 11 days.How queue time is measured

Package metadata

First published
2026-10-16
Total releases
1 / 1 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 4.0.0
Download size
129 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("metricT")
Kimura, A. (2026). metricT: Directional Fragility Diagnostics for EEG Connectivity (Version 0.2.0) [Computer software]. https://doi.org/10.32614/CRAN.package.metricT

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for metricT version 0.2.0 [Data set]. HJJB, LLC. Data release v2026-10-26. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-26, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy