I want to do the interaction analysis for BI and NC and want to see the effect on resting data
Error in if (len%%wd != 0) errex.AFNI(paste("The content under -dataTable is not rectangular !", :
argument is of length zero
Calls: process.MVM.opts
Execution halted
./3dmvm_trial2.sh: line 2: -bsVars: command not found
./3dmvm_trial2.sh: line 3: -qVars: command not found
./3dmvm_trial2.sh: line 4: -mask: command not found
./3dmvm_trial2.sh: line 5: $'-dataTable\r': command not found
./3dmvm_trial2.sh: line 6: Subj: command not found
./3dmvm_trial2.sh: line 7: S0229: command not found
./3dmvm_trial2.sh: line 8: S0230: command not found
Which version of AFNI are you currently using? You can check this by running the command afni -ver. I suggest updating to the latest version, as this might help diagnose the issue you're encountering.
If the variable NC is quantitative, you should modify the following line:
-qVars 'BI' \
to
-qVars 'BI,NC' \
The errors you're seeing are likely due to extra spaces after the backslashes (\) in your script.
The "command not found" errors mean there are not proper newline (\) characters applied. Make sure there are no spaces or tabs after the \ characters. Also, It is better to have a space before the \. Or at least if you don't, then start the next line with space before the next option.
e.g. consider starting with:
I have fixed this issue now I am getting another error:
Dimensions:
rows: 10 | columns: 5
Data summary:
Variable Detected_Type Details
Subj Subjects Num Subjects=102
Group Categorical Counts: patient=102
BI Quantitative Min=18.5 | Max=86.84 | Num outliers=1
NC Quantitative Min=0 | Max=8 | Num outliers=3
InputFile Data Number of InputFiles=10
++ Good: All InputFiles exist.
++ Good: All InputFiles have exactly 1 volume.
++ Good: All InputFiles are on the same grid.
+* Warning: Log file: ./Output_3dMVM_log.txt exists! NOT OVERWRITING!!
Data summary:
Variable Detected_Type Details
Subj Subjects Num Subjects=102
Group Categorical Counts: patient=102
BMI Quantitative Min=18.5 | Max=86.84 | Num outliers=1
NIC Quantitative Min=0 | Max=8 | Num outliers=3
InputFile Data Number of InputFiles=102
++ Good: All InputFiles exist.
++ Good: All InputFiles have exactly 1 volume.
++ Good: All InputFiles are on the same grid.
+* Warning: Log file: ./Output_3dMVM_log.txt exists! NOT OVERWRITING!!
There are a couple of problems with the 3dMVM script. It seems that you only have one group; thus, it does not make sense to include Group in your model specification. Second, among the five effect specifications, the first and the fifth are not estimable while the other three are not properly specified. If you want to estimate the interaction between the two quantitative variables, center the them first, and create another variable (e.g., call it inter) as the product of the two. Then, try the following (make sure both BMI and NIC are centered in your data table):
Thank you, Gang Chen.
I have only concern about the warnings and the last two things that need to know about
how can I do the additive effect of BMI and NIC.
how can I add the group in gltcode if I have two groups
What is the relationship between BMI and NIC? Does one affect the other?
Are the current results aligning with your expectations?
The first warning about centering can be disregarded if you’ve already centered both BMI and NIC in your data table. The second warning regarding columns may stem from the unused 'Group' column.
how can I do the additive effect of BMI and NIC.
Are you referring to the combined effect of BMI and NIC?
how can I add the group in gltcode if I have two groups
You can refer to the 3dMVM help section on factor specification. Feel free to share your current setup if you need clarification or further assistance.
Again, what is the relationship between BMI and NIC? Does one affect the other?
Generally, it does not make sense to combine the effects of BMI and NIC in a single estimate, as they are measured in different units and represent distinct physical aspects.
Note: the values for qvars in 3dttest were given as .txt file but they were same as 3dmvm.
I have one more concern that the result from either of them are not look like interaction effect. I tried to plot tye result and it looks correlation than interaction effect.
The
National Institute of Mental Health (NIMH) is part of the National Institutes of
Health (NIH), a component of the U.S. Department of Health and Human
Services.