Source codes on subset of processed data (for demonstrative purposes) used in our analysis are available at https://github.com/asadpouretal/DCM-confidence.
Original data are available in the open dataset: Gherman, S., & Philiastides, M. G. (2020). Simultaneous EEG-fMRI - Confidence in perceptual decisions [Dataset]. Openneuro. https://doi.org/10.18112/OPENNEURO.DS002739.V1.0.0