3dMEMA error "Warning in MEMA.parse.set(lop, ops[[i]]) :"

Hi guys,

Is there anything obviously wrong with this 3dMEMA command?

3dMEMA -jobs 1
-prefix test_mema_out
-set TEST
1 1_coef+tlrc 1_tstat+tlrc
2 2_coef+tlrc 2_tstat+tlrc
4 4_coef+tlrc 4_tstat+tlrc
-missing_data 0 -residual_Z

(It’s a test case I created to debug. I don’t actually have only 3 subjects for my analysis.)
That command continues to generate this message:

Warning in MEMA.parse.set(lop, ops[[i]]) :
Length of op must be 3*N+1
Make sure what follows -set is of the form:
-set SETNAME , …
What I have is: TEST 1 1_coef+tlrc 1_tstat+tlrc 2 2_coef+tlrc 2_tstat+tlrc 4 4_coef+tlrc 4_tstat+tlrc -missing_data 0
Warning in read.MEMA.opts.batch(args, verb = 0) :
You must have either one or two groups
Error: Error parsing input
Execution halted

I’m not seeing how “What I have” does not agree with “Make sure what follows -set is of the form”

Thanks

For 3dMEMA to work, you need to provide both effect estimates as well as their t-statistic values. In your script, the effect estimate column is missing on the following lines:

1 1_coef+tlrc 1_tstat+tlrc \
2 2_coef+tlrc 2_tstat+tlrc \
4 4_coef+tlrc 4_tstat+tlrc \

I appreciate the reply, Gang.

But I’m still unclear.

from the help doc:
ac ac+tlrc’[14]’ ac+tlrc’[15]’
ejk ejk+tlrc’[14]’ ejk+tlrc’[15]’
ss ss+tlrc’[14]’ ss+tlrc’[15]’ \

How does that differ from this?

1 1_coef+tlrc 1_tstat+tlrc \
2 2_coef+tlrc 2_tstat+tlrc \
4 4_coef+tlrc 4_tstat+tlrc \

Each includes 3 columns, with 1) subj id, 2) coefficent, and 3) t value.
No?