Package: metricT Type: Package Title: Directional Fragility Diagnostics for EEG Connectivity Version: 0.2.1 Authors@R: person("Akira", "Kimura", email = "a-kimura@paz.ac.jp", role = c("aut", "cre"), comment = c(ORCID = "0000-0003-0220-5678")) Description: 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) . License: MIT + file LICENSE Encoding: UTF-8 Language: en-GB Depends: R (>= 4.0.0) Imports: stats, graphics, grDevices, utils Suggests: shiny, testthat (>= 3.0.0), knitr, rmarkdown VignetteBuilder: knitr Config/testthat/edition: 3 URL: https://github.com/akimura753/metricT BugReports: https://github.com/akimura753/metricT/issues RoxygenNote: 7.3.1 Repository: https://akimura753.r-universe.dev Date/Publication: 2026-10-18 15:38:10 UTC RemoteUrl: https://github.com/akimura753/metrict RemoteRef: HEAD RemoteSha: eb8b33d67634736ddd83e78387b3ae298e2cdf53 NeedsCompilation: no Packaged: 2026-10-18 18:24:28 UTC; root Author: Akira Kimura [aut, cre] (ORCID: ) Maintainer: Akira Kimura