Package: rsDCM Type: Package Title: Robust and Sparse Dynamic Causal Modelling for Functional MRI Version: 0.1.0 Date: 2026-09-24 Authors@R: c( person(given = "Godfred", family = "Arhin", email = "arhin0122@gmail.com", role = c("aut", "cre", "trl")), person(given = "Nilotpal", family = "Sanyal", email = "nsanyal@utep.edu", role = "aut"), person(given = "SPM25 Authors", role = c("ctb", "cph"), comment = "Original MATLAB SPM25 (v25.01.02) implementation; see LICENSE.note")) Maintainer: Godfred Arhin Description: Provides a robust and sparse method for group-level Dynamic Causal Modelling (DCM) of functional magnetic resonance imaging (fMRI) data: Student-t weighting of subjects for robustness, combined with a nonlocal product-moment (pMOM) spike-and-slab prior for sparse selection of group-level effects (). The package also provides an R implementation of single-subject DCM for fMRI using variational Laplace inversion (Friston et al., 2003 ), including the bilinear neural state equation and the Buxton-Friston hemodynamic response model, ported from the 'SPM25' (version 25.01.02) toolbox for 'MATLAB'. License: GPL-2 Encoding: UTF-8 LazyData: true Depends: R (>= 4.0.0) Imports: Matrix, expm, MASS, methods, stats, utils Suggests: testthat (>= 3.0.0), knitr, rmarkdown, R.matlab, withr URL: https://github.com/Kay202/rsDCM BugReports: https://github.com/Kay202/rsDCM/issues VignetteBuilder: knitr Config/testthat/edition: 3 Config/roxygen2/version: 8.0.0 Repository: https://kay202.r-universe.dev Date/Publication: 2026-10-06 17:19:37 UTC RemoteUrl: https://github.com/kay202/rsdcm RemoteRef: HEAD RemoteSha: 99e0052e9013dced58539a893b80894d2b0326e7 NeedsCompilation: no Packaged: 2026-10-11 12:30:22 UTC; root Author: Godfred Arhin [aut, cre, trl], Nilotpal Sanyal [aut], SPM25 Authors [ctb, cph] (Original MATLAB SPM25 (v25.01.02) implementation; see LICENSE.note)