The single study General Linear Model can be computed with the method ComputeSingleStudyGLM().
The procedure is the following:
Via scripting |
Via the BrainVoyager user interface |
1. First, an FMR project or VMR project needs to be opened via OpenDocument(). |
|
2. In case of a VMR file, link the corresponding VTC file to the VMR with the method LinkVTC(). |
|
3. Load the model via the function LoadSingleStudyGLMDesignMatrix().
|
|
4a. Then, set the flag for removal of the autocorrelation of the noise. This can be performed setting the BrainVoyager project property CorrectForSerialCorrelations to true.
4b. Also can be chosen to normalize the time courses. This can be done by setting one of the PSCTransformStudies, ZTransformStudies or ZTransformStudiesBaselineOnly project properties to true.
|
|
5. The necessary preparations are entered now and the General Linear Model can be computed via ComputeSingleStudyGLM().
|
|
6. The result of the General Linear Model computation can be shown in the BrainVoyager QX window via ShowGLM().
|
|
7. The GLM can be saved via the SaveGLM() method. |
|
A sample script could look like this: