Print

Print


Dear Chou-Ching,

On Tue, Apr 27, 2010 at 7:30 PM, 林宙晴 <[log in to unmask]> wrote:

> Sorry to bother you, but I have 2 more questions.
> 1. Recently I read that some one is looking for a batch file to run DCM and
> found dcm_spm8_batch.m.  I glanced the file and think it is for DCM_fMRI. Am
> I right?

Yes.

>  Is there any example batch file for DCM_ERP and DCM_IR? or any explainatory
> file for the necessary fields to run DCM EEG? It's my laziness to try to put
> all possible models to run at one batch.
>

There is no example file for DCM-IR but there is an example file for
DCM-ERP that you can find at \man\example_scripts\DCM_ERP_subject1

In general the most convenient way to run DCM in batch is to set up
your template DCM with the GUI, then load it, modify the things you
need (like A and B matrices) and then running it from script and
saving under a different name (you should update DCM.name before you
run it).

> 2. Last time, I asked about the magic number of 64 in DCM_IR. I did change
> it to larger numbers and it can run longer.  My question is that when it
> stops and does not converge.  It you run again with existing priors, I found
> the F starts from near 0, instead of continuing the existing number.

Did you answer 'yes' to both questions 'Use previous priors?' and 'Use
previous posteriors'? If not, you should.

> My
> question is that, for the final F, is the F of previous 64 runs stored in
> the saved file or F is re-calculated?

What's important is not the value of F but the parameter values at the
end of previous optimization. They should be used if you say 'yes' to
'use previous posteriors'.

> And can I use previous priors if I
> changes the weights, like A or B?
>

You can, but it's not necessarily meaningful in this case. I don't see
a reason to do it.

Best,

Vladimir

Did you answer 'yes' to both questions 'Use previous priors?' and 'Use
previous posteriors'? If not, you should.

> 2010/4/27 Vladimir Litvak <[log in to unmask]>
>>
>> Dear  Chou-Ching,
>>
>> On Thu, Apr 15, 2010 at 2:50 PM, Chou-Ching K. Lin <[log in to unmask]>
>> wrote:
>>
>> > Second, when I reload the saved DCM file, all the parameters are
>> > recovered, but those dots for B in the lower box are missing (every time).
>>
>> If you put the attached file in \toolbox\dcm_meeg this should solve
>> the problem. One note about the data you sent me. You only have 200 ms
>> you want to model. That's very short. I'd be surprised if you get any
>> meaningful DCM-IR results from such a short segment.
>>
>> Best,
>>
>> Vladimir
>
>