Diff for "LinearRegression" - Meg Wiki
location: Diff for "LinearRegression"
Differences between revisions 19 and 21 (spanning 2 versions)
Revision 19 as of 2009-02-16 14:58:56
Size: 3107
Editor: YaaraErez
Comment:
Revision 21 as of 2009-02-16 15:08:08
Size: 2931
Editor: YaaraErez
Comment:
Deletions are marked like this. Additions are marked like this.
Line 8: Line 8:
% The parameters following ### are defined once for all input files:  . % The parameters following ### are defined once for all input files:
 . . '''### #correl_type combine'''
'''+ #param_file /whateverthepath/param_file.txt''' % file that defines predictor variables for each trigger value
Line 10: Line 12:
 ### #correl_type combine '''+ #correl_columns 3 4 5 6 7 8 '''% specifies which columns in param_file contain the predictor variables
Line 12: Line 14:
+ #param_file /whateverthepath/param_file.txt % file that defines predictor variables for each trigger value '''+ #trigger_columns 2 '''% specifies which column in param_file.txt contains trigger value (can be more than 1 column)
Line 14: Line 16:
+ #correl_columns 3 4 5 6 7 8 % specifies which columns in param_file contain the predictor variables '''+ #info_file /whateverthepath/info_file.txt '''% output file for number of valid trials per input file
Line 16: Line 18:
+ #trigger_columns 2 % specifies which column in param_file.txt contains trigger value (can be more than 1 column) '''+ #mag_thresholds 2500 0 1500 0''' % tresholds for artefact rejection, magnetometers (fT)
Line 18: Line 20:
+ #info_file /whateverthepath/info_file.txt % output file for number of valid trials per input file '''+ #grad_thresholds 1000 0 800 0''' % tresholds for artefact rejection, gradiometers (fT/cm)
Line 20: Line 22:
+ #mag_thresholds 2500 0 1500 0 % tresholds for artefact rejection, magnetometers (fT) '''+ #eog_channels 307 308'''              % channel number of EOG channels
Line 22: Line 24:
+ #grad_thresholds 1000 0 800 0 % tresholds for artefact rejection, gradiometers (fT/cm) '''+ #thresholds 150 0 100 0'''            % tresholds for artefact rejection, EOG (uV)
Line 24: Line 26:
+ #eog_channels 307 308 % channel number of EOG channels '''+ #baseline -100 0              '''% interval for baseline correction with respect to trigger onset
Line 26: Line 28:
+ #thresholds 150 0 100 0 % tresholds for artefact rejection, EOG (uV) '''+ #epoch_length 500'''        % length of epoch to be analysed
Line 28: Line 30:
+ #baseline -100 0 % interval for baseline correction with respect to trigger onset '''+ #pre_stim_time -100''' % start latency of epoch (can be different from baseline)
Line 30: Line 32:
+ #epoch_length 500 % length of epoch to be analysed

+ #pre_stim_time -100 % start latency of epoch (can be different from baseline)
<\p>
Line 36: Line 36:
#fif /whateverthepath/MEG_infile.fif % input fiff-file '''#fif /whateverthepath/MEG_infile.fif''' % input fiff-file
Line 38: Line 38:
+ #outfif /whateverthepath/MEG_outfile.fif % base for output fiff-file (there will be different files for different regressors) '''+ #outfif /whateverthepath/MEG_outfile.fif''' % base for output fiff-file (there will be different files for different regressors)
Line 40: Line 40:
+ #fiff_template /whateverthepath/MEG_template.fif % will be used for head coordinates

#fif /whateverthepath/MEG_infile2.fif % input fiff-file

+ #outfif /whateverthepath/MEG_outfile2.fif % base for output fiff-file (there will be different files for different regressors)

+ #fiff_template /whateverthepath/MEG_template2.fif % will be used for head coordinates
'''+ #fiff_template /whateverthepath/MEG_template.fif''' % will be used for head coordinates

Multiple regression analysis applied to EEG and MEG data

These tools apply multiple linear regression to EEG and MEG data, in contrast to conventional factorial averaging. The input are Neuroscan cnt-files (EEG) or Neuromag fiff-files (MEG), respectively. The output are either ascii, avg (EEG) or fiff-files (MEG), which can be processes just as conventional ERP/ERFs, e.g. with respect to source analysis. These tools are still under development. If you would like more information, please contact olaf.hauk@mrc-cbu.cam.ac.uk . A different approach to regression analysis is also part of SPM5.

In order to run your analysis, you will end up with a script like the following:


  • % The parameters following ### are defined once for all input files:
  • . ### #correl_type combine

+ #param_file /whateverthepath/param_file.txt % file that defines predictor variables for each trigger value

+ #correl_columns 3 4 5 6 7 8 % specifies which columns in param_file contain the predictor variables

+ #trigger_columns 2 % specifies which column in param_file.txt contains trigger value (can be more than 1 column)

+ #info_file /whateverthepath/info_file.txt % output file for number of valid trials per input file

+ #mag_thresholds 2500 0 1500 0 % tresholds for artefact rejection, magnetometers (fT)

+ #grad_thresholds 1000 0 800 0 % tresholds for artefact rejection, gradiometers (fT/cm)

+ #eog_channels 307 308 % channel number of EOG channels

+ #thresholds 150 0 100 0 % tresholds for artefact rejection, EOG (uV)

+ #baseline -100 0 % interval for baseline correction with respect to trigger onset

+ #epoch_length 500 % length of epoch to be analysed

+ #pre_stim_time -100 % start latency of epoch (can be different from baseline)

<\p>

% The following commands are specified for individual input files:

#fif /whateverthepath/MEG_infile.fif % input fiff-file

+ #outfif /whateverthepath/MEG_outfile.fif % base for output fiff-file (there will be different files for different regressors)

+ #fiff_template /whateverthepath/MEG_template.fif % will be used for head coordinates


  • You can also run regression analysis across multiple files, e.g. several blocks for the same subject. You can also provide an external list of trigger values.

CbuMeg: LinearRegression (last edited 2013-03-08 10:02:16 by localhost)