Package: stateR 0.1.0

Lucas França

stateR: Brain State Metrics for Functional Connectivity Studies

Provides tidy tools for quantifying brain state dynamics from functional connectivity time series. Computes fractional occupancy, mean dwell time, and Markov-chain transition probabilities across discrete brain states derived from clustering methods such as k-means or hidden Markov models.

Authors:Lucas França [aut, cre], Dafnis Batallé [aut]

stateR_0.1.0.tar.gz
stateR_0.1.0.zip(r-4.7)stateR_0.1.0.zip(r-4.6)stateR_0.1.0.zip(r-4.5)
stateR_0.1.0.tgz(r-4.6-any)stateR_0.1.0.tgz(r-4.5-any)
stateR_0.1.0.tar.gz(r-4.7-any)stateR_0.1.0.tar.gz(r-4.6-any)
stateR_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION
card.svg |card.png
stateR/json (API)

# Install 'stateR' in R:
install.packages('stateR', repos = c('https://code-neuro.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/code-neuro/stater/issues

Pkgdown/docs site:https://code-neuro.github.io

On CRAN:

Conda:

3.18 score 1 scripts 3 exports 25 dependencies

Last updated from:5e708ad694 (on v0.1.0). Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK197
source / vignettesOK178
linux-release-x86_64OK202
macos-release-arm64OK172
macos-oldrel-arm64OK219
windows-develOK89
windows-releaseOK90
windows-oldrelOK205
wasm-releaseOK135

Exports:clusters_markovnest_dwellnest_fo

Dependencies:clicpp11dplyrgenericsgluehmsjanitorlifecyclelubridatemagrittrpillarpkgconfigpurrrR6rlangsnakecasestringistringrtibbletidyrtidyselecttimechangeutf8vctrswithr

Grouped pipeline: testing across states
Overview | Simulated data | Step 1 — Compute fractional occupancy | Step 2 — Test each state | Step 3 — Dwell time pipeline | Step 4 — Markov transition pipeline | Using ptestR for permutation tests | Notes on vars and covariate carriage | Further reading

Last update: 2026-05-31
Started: 2026-05-31

Markov transition probabilities
What is a Markov transition? | Simulated data | Computing transitions | The transition matrix | Removing self-transitions | The tag convention | vars vs groupBy | Further reading

Last update: 2026-05-31
Started: 2026-05-31

Getting started with stateR
What is a brain state? | Input format | Simulated data | Fractional occupancy with nest_fo() | Dwell time with nest_dwell() | Markov transitions with clusters_markov() | Output structure at a glance | Further reading

Last update: 2026-05-31
Started: 2026-05-31