The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.

rsDCM

R-CMD-check

rsDCM is an R package for Dynamic Causal Modelling (DCM) of functional MRI data. It is an R port of the corresponding routines in the MATLAB SPM25 toolbox, with optimizations for the integration and Gauss-Newton inner loops.

Installation

From GitHub (development version):

# install.packages("remotes")
remotes::install_github("Kay202/rsDCM")

From CRAN, once published:

install.packages("rsDCM")

Quick start

library(rsDCM)

# Three-region toy DCM shipped with the package (482 scans, one input)
data(toy_dcm)

# Invert. Takes roughly 75 seconds on this dataset.
fit <- dcm_estimate(toy_dcm)

# Posterior connectivity
round(fit$Ep$A, 3)

# Variational free energy (log-evidence proxy)
fit$F

The introductory vignette has more detail:

vignette("introduction", package = "rsDCM")

What’s exported

User-facing entry points:

Group-level (Parametric Empirical Bayes):

Group-level (robust and sparse, Student-t + pMOM):

The narps_dcm dataset (48 subjects, from the openly shared NARPS data) is the runnable real-data example for rsdcm().

Lower-level utilities (dcm_vec, dcm_inv, dcm_logdet, …) are also exported and have their own help pages, so you can call them directly as dcm_vec(). They are marked @keywords internal, which only keeps them out of the package index. Access is not restricted, and the ::: operator is not needed for them.

Acknowledgment

rsDCM is a derivative work of the MATLAB SPM25 toolbox, distributed under GPL-2 by the Wellcome Centre for Human Neuroimaging. See LICENSE.note for the list of ported routines and the references.

License

GPL-2.

References

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.