Error Messages Using 1dSEM Example Code

Hi,

I’ve been having trouble processing the SEM script from this website: https://sscc.nimh.nih.gov/sscc/gangc/PathAna.html (It’s called tcsh script on the website) using my own data. Every time I run the script, I continue to get these error messages:
++ 3dTstat: AFNI version=AFNI_17.2.03 (Jul 20 2017) [64-bit]
++ Authored by: KR Hammett & RW Cox
*+ WARNING: Input dataset has 1 sub-brick ==> -tdiff is turned off
*+ WARNING: Input dataset is not 3D+time; assuming TR=1.0
++ Output dataset ./SEM_resvar_roi0001.1D
++ 3dMean: AFNI version=AFNI_17.2.03 (Jul 20 2017) [64-bit]
++ 3dTstat: AFNI version=AFNI_17.2.03 (Jul 20 2017) [64-bit]
++ Authored by: KR Hammett & RW Cox
*+ WARNING: Input dataset has 1 sub-brick ==> -tdiff is turned off
*+ WARNING: Input dataset is not 3D+time; assuming TR=1.0
++ Output dataset ./SEM_resvar_roi0002.1D
++ 3dMean: AFNI version=AFNI_17.2.03 (Jul 20 2017) [64-bit]
++ 3dTstat: AFNI version=AFNI_17.2.03 (Jul 20 2017) [64-bit]
++ Authored by: KR Hammett & RW Cox
*+ WARNING: Input dataset is not 3D+time; assuming TR=1.0
++ Output dataset ./SEM_DF.1D

Because of this error, the 1dSEM code is not able to execute successfully. And I get the following error message:
++ 1dSEM: AFNI version=AFNI_17.2.03 (Jul 20 2017) [64-bit]
++ Authored by: Daniel Glen, Gang Chen
** FATAL ERROR: Need to specify all three 1D files for theta,C,psi and specify DF

My input data consists of two subject files, each with two columns representing ROI time series. Also, I created a MinModel.1D file that consists of a matrix for the model search option of 1dSEM.

Thank you in advance to whomever can help! I’m pretty new, so any advice will help.
SN

My input data consists of two subject files, each with two columns representing ROI time series.

Does it mean that you have only two subjects and two ROIs? If so, SEM would not work for such a small number of ROIs and subjects. You need at least 4 ROIs and more subjects.