AFNI Message Board

Dear AFNI users-

We are very pleased to announce that the new AFNI Message Board framework is up! Please join us at:

https://discuss.afni.nimh.nih.gov

Existing user accounts have been migrated, so returning users can login by requesting a password reset. New users can create accounts, as well, through a standard account creation process. Please note that these setup emails might initially go to spam folders (esp. for NIH users!), so please check those locations in the beginning.

The current Message Board discussion threads have been migrated to the new framework. The current Message Board will remain visible, but read-only, for a little while.

Sincerely, AFNI HQ

History of AFNI updates  

|
April 13, 2009 04:50PM
Hi, Gang,

I'm just testing for Granger causality between the seed and one other node, just to get the hang of the program. My progress through the program from the beginning and to the error constitutes the first paragraph below. The second and third paragraphs are the seed and node ROI file data, respectively.

Thanks for your time.

"> source("/home/andrew/afni/1dGC.R")
[1] "#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
[1] " ================== Welcome to 1dGC.R ================== "
[1] "AFNI Vector (or Multivariate) Auto-Regressive (VAR or MAR) Modeling Package!"
[1] "#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
[1] "Version 1.0.8, April 8, 2009"
[1] "Author: Gang Chen (gangchen@mail.nih.gov)"
[1] "Website: [afni.nimh.nih.gov];
[1] "SSCC/NIMH, National Institutes of Health, Bethesda MD 20892"
[1] "#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
[1] "Package network successfully loaded!"
[1] "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
[1] "Visit [afni.nimh.nih.gov] and makse sure"
[1] "you've acquired the data for the analysis in desirable data format."
[1] "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
[1] "################################################################"
[1] "Please consider citing the following if this program is useful for you:"

Gang Chen, J. Paul Hamilton, Moriah E. Thomason, Ian H. Gotlib, Ziad S. Saad
Robert W. Cox, Granger causality via vector auto-regression (VAR) attuned for
FMRI data analysis. ISMRM 17th Scientific Meeting, Hawaii, 2009.

[1] "################################################################"
[1] "Use CNTL-C on Unix or ESC on GUI version of R to stop at any moment."
Analysis type (0: quit; 1: individual; 2: group)? 1
[1] "Package gsl successfully loaded!"
[1] "Package vars successfully loaded!"
Number of regions/nodes (e.g., 6)? 2
[1] "Header with one line of labels is optional in multi-column files, but NOT allowed in one-column files."
ROI time series data type (0: MULTIPLE one-column files; 1: ONE multi-column file)? 0
No. 1 ROI time series file name: /home/andrew/experiments/GCM_test/S1/ROI_1_sub_1.1D
[1] "No. 1 file just read in: ROI_1_sub_1.1D"
No. 2 ROI time series file name: /home/andrew/experiments/GCM_test/S1/ROI_2_sub_1.1D
[1] "No. 2 file just read in: ROI_2_sub_1.1D"
Name for region/node number 1? A
Name for region/node number 2? B
[1] "#++++++++++++++++++++++++++++++++++++++++++++"
[1] "If there are n consecutive chunks of data, enter n-1 here."
[1] "If all the time series are consecutive, enter 0 breaks."
Number of breaks in the time series? 5
Length of number 1 run/segment? 112
Length of number 2 run/segment? 112
Length of number 3 run/segment? 112
Length of number 4 run/segment? 112
Length of number 5 run/segment? 112
Length of number 6 run/segment? 112
[1] "#++++++++++++++++++++++++++++++++++++++++++++"
[1] "Prior detrending is NOT recommended due to potential complications. "
[1] "Trend can be modeled through specifying the order of a polynomial here, "
[1] "or can be included as part of covariates later on. If you plan to model the"
[1] "trend with your own regressors or don't need to model it, choose -1 here."
[1] "If trend has already been removed (not recommended), choose 0 here."
Order of polynomials for drifting effects (note: -1 means no trend removal!)? 2
[1] "#++++++++++++++++++++++++++++++++++++++++++++"
Any other covariates or confounding effects than drifting (0: no; 1: yes)? 1
Number of covariates (e.g., 6)? 6
[1] "Header with one line of labels is optional in multi-column files, but NOT allowed in one-column files."
Covariates data type (0: MULTIPLE one-column files; 1: ONE multi-column file)? 0
Error in read.table(inFile[[ii]], header = FALSE) :
'file' must be a character string or connection"

------------------------------------------------------------

"-0.43
-0.47
0.05
0.25
0.48
-0.14
0.62
0.41
0.05
-0.11
0.1
0.11
0.2
0.13
0.27
-0.01
0.09
0.48
0.3
-0.01
0.02
-0.1
-0.09
-0.09
-0.13
-0.15
0.35
-0.1
0.01
0.03
0.04
0.13
-0.15
0.1
0.19
0.01
0.26
0.77
0.16
-0.27
0.24
-0.18
-0.32
-0.3
-0.1
0.01
0.01
-0.19
0.03
0.16
0.04
-0.3
-0.1
0.05
0.22
0.14
0.2
0.37
0.35
0.4
-0.25
-0.13
0.09
-0.06
-0.32
-0.1
0.26
0.23
0.15
0.18
0.1
-0.05
0.15
-0.03
-0.43
-0.06
0.33
0.39
0.54
0.08
0.08
0.03
0.22
0.03
0.39
-0.04
0.03
0.11
0.23
0.25
0.35
0.46
0.13
0.2
0.47
0.02
-0.22
-0.06
0.18
-0.02
0.53
0.18
-0.09
-0.61
-0.62
-0.56
0.03
0.13
-0.02
0.03
0.18
-0.04
0.22
0.33
0.42
0.17
-0.14
-0.38
-0.21
-0.11
-0.05
0.07
0.17
0.36
0.22
0.04
0.11
-0.3
-0.37
-0.14
-0.66
-0.14
-0.04
0.11
0.16
0.53
0.2
0.41
0.61
0.56
0.16
0.35
-0.18
0.04
-0.17
-0.23
-0.14
-0.03
0.25
-0.01
0.19
-0.13
0.15
-0.13
0.1
0.05
-0.13
0.37
0.26
0.06
-0.24
0.21
0.67
0.06
-0.22
-0.03
-0.09
-0.11
-0.14
0.06
0.39
0.28
0.61
-0.08
-0.12
-0.27
0.45
0.02
0.14
-0.02
0.19
0.36
-0.06
0.04
0
0.36
-0.16
-0.23
-0.1
0.02
0.18
0.35
-0.18
-0.43
0.18
0.3
0.1
0.39
0.24
0.2
0.21
0.13
-0.06
-0.16
-0.19
-0.22
0.2
0.17
-0.26
0.21
0.19
0.5
0.59
0.53
0.09
0.05
-0.28
-0.21
-0.25
-0.44
0.03
0.15
0.3
-0.11
-0.29
-0.59
-0.53
-0.4
-0.16
-0.2
0.16
0.25
0.29
0.33
0.5
0.39
0.43
0.22
-0.05
0.09
-0.08
0.51
0.38
0.66
0.3
-0.21
-0.17
-0.2
-0.08
0.18
0.02
0.29
0.39
0.55
0.04
-0.05
-0.29
0.13
0.19
-0.06
0.06
-0.11
-0.19
0.09
0.07
0.03
0.33
0.35
0.02
-0.2
0.03
-0.05
0.23
-0.38
-0.01
0.04
-0.21
-0.24
-0.14
0.02
-0.05
0.16
0
-0.16
-0.19
-0.07
-0.01
0.25
0.52
0.5
-0.07
0.23
0.14
0.04
0.52
0.42
0.56
0.64
0.38
0.1
0.27
0.46
0.13
-0.43
-0.51
-0.15
-0.3
-0.43
-0.45
-0.5
-0.44
-0.3
-0.26
-0.04
0.27
0.23
0.43
0.33
0.35
0.14
0.2
0.04
-0.22
0.37
0.1
0.53
0.49
0.08
-0.02
0.23
0.12
-0.11
-0.31
0.17
0.17
-0.27
-0.16
-0.02
0.15
0.04
0.15
0.29
-0.12
-0.28
-0.06
0.34
0.08
-0.16
-0.15
-0.24
-0.2
-0.08
0.38
0.32
0.12
0.27
0.15
-0.09
0.12
0.33
0.31
0.05
-0.02
0.14
-0.03
0.07
0.23
-0.39
-0.2
-0.02
-0.05
0.29
0.18
0.11
-0.33
-0.35
0.22
-0.09
-0.21
0.19
0.28
0.65
0.72
0.21
-0.06
0.03
-0.02
0.17
0.02
-0.28
0.16
-0.05
0.07
0.13
0.17
0.19
0.32
0.38
0.04
0.06
0.13
0.19
0.11
-0.04
0.13
0.12
-0.03
0.29
-0.12
-0.15
-0.05
-0.23
-0.01
0.11
-0.05
-0.08
-0.29
-0.11
-0.18
-0.31
-0.1
-0.06
0.32
0.72
0.48
0.22
0.33
0.24
0.15
0.12
-0.35
0.21
0.01
0.18
-0.17
-0.16
0.12
0.08
0.08
0.41
-0.03
-0.2
-0.12
-0.02
0.45
0.58
-0.14
-0.22
0.13
0.19
-0.01
0.51
0.18
-0.27
-0.1
-0.25
0.11
-0.18
-0.06
-0.29
0.25
0.26
0.14
0
-0.07
-0.1
-0.01
0.17
-0.08
0.16
0.34
0.05
0.14
0.09
-0.05
0.09
0.05
-0.04
-0.19
-0.04
0.32
0.27
0.11
0.13
0.21
0.07
0.3
0.17
0.07
0.08
-0.15
-0.5
-0.15
0.01
-0.06
-0.02
0.11
0.22
0.23
-0.13
0.22
0.28
0.14
0.02
-0.44
0.27
0.41
0.06
-0.1
-0.1
0.25
0.16
-0.08
0.39
0.08
-0.01
0.34
0.04
-0.32
0.04
0.11
0.21
-0.09
0.03
-0.14
0.27
-0.02
-0.15
0.29
0.43
-0.11
-0.17
0.2
0.47
0.42
-0.06
0.06
0.52
0.41
0.07
-0.14
-0.02
-0.02
-0.03
-0.26
0.39
0.01
-0.07
-0.29
-0.1
0.13
0.08
0.55
0.48
-0.06
-0.12
0.28
0.3
-0.23
-0.64
0.02
0.32
0.16
0.44
0.18
-0.1
-0.27
-0.11
-0.26
-0.18
-0.14
-0.02
-0.2
0.25
0.32
0.16
-0.4
-0.03
-0.21
0.23
-0.11
-0.03
-0.19
0.1
0.39
0.28
-0.03
0.13
-0.17
0.25
0.46
0.41
0.03
0.27
0.41
0.38
0.28
0.03
0.65
0.58
0.19
0.17
0.38
0.34
0.17
0.02
-0.26
-0.51
-0.5
0.03
-0.21
-0.48
-0.11
0.02
-0.23
-0.35
0.21
0.29
-0.25
-0.19
-0.19
-0.15
-0.13
0.04
-0.26
0.42
0.01
0.25
0.09
-0.06
0.28
0.16
0.33
0.58
0.36
0.45
0.51
0.57
0.15
-0.07
-0.38
-0.36
-0.24
-0.56
-0.55
-0.1
0.22
-0.18
0.29
0.51
0.32
0.27
0.3
0.5
0.47
0.32
0.63
0.76
0.33
0.06
-0.06
-0.4
-0.01
0.23
0.35
-0.09
-0.46
-0.36
-0.09
0.14
0.11
-0.51"

------------------------------------------------------------

"-0.21
-0.64
0.05
0.25
0.42
-0.02
0.4
0.4
0.33
0.28
0.16
0.05
0.23
0.22
0.03
-0.26
-0.02
0.13
-0.2
0.15
0.21
0.36
0.24
-0.08
0.14
-0.04
0.31
0.4
0.07
0.17
-0.36
-0.27
-0.1
-0.35
-0.02
0.29
0.36
0.83
0.42
0.06
0.37
0.02
0.09
-0.13
0.13
-0.14
0.03
-0.15
0.03
-0.01
-0.24
-0.11
0.07
-0.12
0.16
0.4
0.32
0.41
0.38
0.58
0.13
-0.05
-0.04
-0.25
-0.47
-0.34
-0.15
0.12
-0.04
0.29
0.02
0.15
0.36
0.01
-0.63
-0.21
0.27
0.48
0.4
0.09
-0.27
-0.23
0.15
0.37
0.32
0.24
0.18
0.04
0.3
0.48
0.63
0.35
0.25
0.54
0.23
-0.04
0.26
0.4
0.72
0.28
0.41
-0.17
-0.29
-0.38
-0.6
-0.34
0.2
0.19
-0.2
-0.14
0.05
-0.28
0.01
0
0.09
0.23
0
0.33
-0.05
-0.1
0.29
0.46
0.23
0.44
0.22
-0.07
-0.2
0.24
-0.33
-0.09
-0.79
-0.14
-0.26
-0.16
0.07
0.39
-0.23
-0.21
0.37
0.64
0.33
0.11
-0.55
-0.1
-0.09
-0.25
0.28
0.11
0.15
-0.14
0.49
0.05
0.34
0.24
0.35
0.05
-0.23
0.29
0.38
-0.07
-0.61
0.35
0.33
0.13
-0.53
0.19
0.54
0.46
0.26
0.15
0.44
0.19
0.67
0.12
-0.48
-0.41
0.26
0.09
-0.19
0.46
0.1
0.37
0.26
0.43
0.35
0.21
-0.19
-0.35
0
0.26
0.27
0.36
-0.14
-0.27
0.16
0.17
0.06
0.03
-0.19
-0.16
0.33
0.28
0.31
-0.22
-0.06
-0.17
0.04
0.35
0.09
0.14
0.14
0.27
0.39
0.62
0.24
-0.06
0.26
0.31
-0.26
-0.53
0
0.02
0.09
-0.1
-0.32
-0.16
-0.32
-0.32
-0.23
-0.13
0.14
0.24
0.53
0.62
0.44
0.2
0.25
0.53
0.1
0.04
-0.07
0.11
0.1
0.32
0.34
-0.02
-0.11
-0.18
0.29
-0.3
-0.21
0.5
0.29
0.44
-0.1
-0.32
-0.46
-0.08
0.31
0.14
0.04
0.05
0.08
0.16
0.41
0.41
0.37
0.07
0.12
-0.22
-0.02
-0.08
0.22
-0.33
-0.29
0.13
-0.27
0.22
0.19
0.45
-0.12
-0.12
-0.15
-0.08
-0.43
0
0.12
0.45
0.46
0.66
0.58
0.38
0.47
0.22
0.07
0.23
0.84
0.98
0.75
0.09
0.48
-0.06
-0.11
-0.36
-0.15
0.17
-0.43
-0.48
-0.4
-0.6
-0.48
-0.4
-0.37
-0.14
0.26
0.04
0.54
0.63
0.47
0.1
0.14
0.08
0.2
0.39
0.33
0.22
0.37
0.31
-0.02
0.25
0.2
-0.33
-0.64
-0.12
0.42
0.16
-0.17
0.02
0.43
0.13
0.45
0.16
-0.05
-0.19
-0.25
-0.15
-0.26
-0.48
0.11
-0.28
-0.08
-0.21
-0.16
-0.05
0.24
0.18
0.23
0.01
0.28
0.37
0.48
0.23
-0.18
0.19
0.48
0.03
0.13
-0.16
0.11
0.24
0.1
-0.23
0.09
0.52
-0.18
-0.12
0.54
0.07
0.19
0.1
0.37
0.65
0.56
0.32
0.08
0.41
0.14
0.17
0.11
-0.09
0.08
0.16
-0.16
-0.01
0.27
0.48
0.08
0.36
-0.13
0.02
0.25
0.3
0.16
-0.14
0.13
0.07
-0.12
-0.12
0.03
-0.02
-0.22
-0.27
0.05
0
-0.49
-0.27
-0.33
0.04
-0.09
-0.32
-0.11
0.06
0.34
0.5
0.58
0.22
0.65
0.39
0.32
-0.19
-0.15
0.33
0.19
0.08
-0.22
-0.27
0.07
-0.01
0.03
0.43
0.3
-0.18
0.19
0.21
0.42
0.55
0.11
-0.2
-0.04
0
0.11
0.33
0.1
-0.17
-0.16
0.08
0.49
-0.01
0.26
0.2
0.41
0.15
0.3
-0.18
-0.38
-0.54
-0.32
-0.61
-0.63
-0.15
-0.11
0.13
0.14
0.31
0.34
0.2
0.05
0.39
-0.16
0.34
0.56
0.47
0.17
0.56
0.63
0.08
0.42
0.32
0.2
-0.12
-0.28
-0.5
-0.28
0.07
0
0.1
0.63
0.94
0.19
0.32
0.21
0.45
-0.16
0.37
0.06
0.2
0.12
0.33
-0.13
0.34
0.46
0.26
0.18
0.28
-0.06
-0.2
-0.12
-0.03
-0.17
-0.26
-0.13
0.41
-0.21
-0.02
-0.35
-0.07
-0.06
0.16
0.48
0.58
-0.02
-0.38
0.38
-0.06
-0.26
-0.3
-0.39
0.18
0.16
0.47
-0.08
0.17
0.07
0
0.08
-0.02
0.11
0.01
0.21
0.19
0.29
0.56
0.84
0.36
0.06
-0.02
-0.07
-0.19
0.04
-0.33
-0.04
0.39
0.16
0.21
0.49
0.1
-0.49
-0.42
-0.4
-0.51
-0.18
0.15
0
0.57
0.67
0.21
-0.14
-0.07
-0.07
0.41
0.09
0.28
0.32
0
-0.09
-0.44
-0.14
-0.3
-0.28
0.31
0.9
0.75
0.26
0.3
0.7
0.64
0.24
0.3
0.51
0.43
0.41
0.17
0.2
0.39
0
0.03
-0.2
-0.83
-0.42
0.12
-0.23
-0.44
0
-0.03
-0.35
-0.65
0.01
0.37
-0.37
0.46
-0.18
-0.22
-0.01
0.13
-0.29
0.18
0.28
0.59
0.06
0.16
0.25
0.18
0.86
0.55
0.2
0.53
0.62
0.36
-0.08
-0.14
-0.21
0.1
-0.19
-0.17
-0.17
0.03
0.16
-0.13
-0.11
-0.08
0.05
0.03
0.27
0.69
0.48
0.41
0.67
0.66
0.09
-0.09
-0.39
-0.15
0.32
0.53
0.37
0.03
-0.47
-0.55
-0.41
0.02
0.01
-0.37"
Subject Author Posted

1dGC error

AndrewJB April 10, 2009 11:12AM

Re: 1dGC error

Gang Chen April 10, 2009 03:38PM

Re: 1dGC error

AndrewJB April 13, 2009 12:30PM

Re: 1dGC error

Gang Chen April 13, 2009 03:35PM

Re: 1dGC error

AndrewJB April 13, 2009 04:50PM

Re: 1dGC error

Gang Chen April 14, 2009 10:39AM

Re: 1dGC error

AndrewJB April 14, 2009 11:14AM

Re: 1dGC error

Gang Chen April 14, 2009 11:48AM

Re: 1dGC error

AndrewJB April 14, 2009 02:22PM

Re: 1dGC error

AndrewJB April 14, 2009 02:25PM

Re: 1dGC error

Gang Chen April 14, 2009 03:03PM