Plotting conditions - LIMO-EEG-Toolbox/limo_tools Wiki

Random Effect - Basic Stats - Central tendency and CI

In this section, we review how to plot a given condition using the LIMO EEG tools. We first look at simply plotting the data (beta values) that reflect the statistics that you use. Then we will look at plotting the EEG data that reflect the beta values used in the statistics.

What are the CI?

For each summary stat (e.g. the mean) we also plot the 95% Highest Density Intervals. These are generated using a Bayesian bootstrap. This means that for a given value, you can see the 95% probability the value is in that interval.

Summary stats for beta values

Random effect analyses are performed on betas values and therefore, if you want to show the data you want to show the beta values (or contrasts).

Pre-requisite

You should have a text file listing all the beta files (this is created automatically if you use the LIMO Batch). The alternative is to select manually all files one by one, which is not recommended.

such text file looks like this

E:\My_Documents\MATLAB\limo_eeg_to_do\Continuous_design\S1\GLM_WLS_Time_Channels\Betas.mat
E:\My_Documents\MATLAB\limo_eeg_to_do\Continuous_design\S2\GLM_WLS_Time_Channels\Betas.mat
E:\My_Documents\MATLAB\limo_eeg_to_do\Continuous_design\S3\GLM_WLS_Time_Channels\Betas.mat
E:\My_Documents\MATLAB\limo_eeg_to_do\Continuous_design\S4\GLM_WLS_Time_Channels\Betas.mat
E:\My_Documents\MATLAB\limo_eeg_to_do\Continuous_design\S5\GLM_WLS_Time_Channels\Betas.mat

computing the average Betas

Plotting betas with 95% CI

By iteratively asking you to select files, you can compare conditions (e.g. mean beta values condition 1 and 2), summary stats (e.g. mean vs. trimmed mean) or channels (left vs right channels).

What to plot for my group level analysis

from 1st level OLS: mean within subjects, trimmed mean between subjects (mean for repeated measures until we have a good robust solution)
from 1st level WLS: weighted mean within subjects, trimmed mean between subjects (mean for repeated measures until we have a good robust solution)

What is saved on the drive?

(myname)(stat)_of_Betas.mat -- this file is a structure called Data.
Data.stat contains the summary statistics. For instance Data.mean contains in the last dimension the lower bound of the CI, mean and upper bound of the CI for a given Beta (column of the design matrix).
Data.limo contains info needed to build a meaningful plot (time, sampling, channels).

_(myname)_single_subjects_Betas.mat -- this file is a structure called Data
Data.data contains the betas values of all subjects for the condition selected Data.limo contains info needed to build a meaningful plot (time, sampling, channels).

Summary stats for ERP data

Pre-requisite

You should have a text file listing all the beta files (this is created automatically if you use the LIMO Batch). The alternative is to select manually all files one by one, which is not recommended.

such text file looks like this
E:\My_Documents\MATLAB\limo_eeg_to_do\Continuous_design\S1\GLM_WLS_Time_Channels\LIMO.mat
E:\My_Documents\MATLAB\limo_eeg_to_do\Continuous_design\S2\GLM_WLS_Time_Channels\LIMO.mat
E:\My_Documents\MATLAB\limo_eeg_to_do\Continuous_design\S3\GLM_WLS_Time_Channels\LIMO.mat
E:\My_Documents\MATLAB\limo_eeg_to_do\Continuous_design\S4\GLM_WLS_Time_Channels\LIMO.mat
E:\My_Documents\MATLAB\limo_eeg_to_do\Continuous_design\S5\GLM_WLS_Time_Channels\LIMO.mat

computing the average ERP

Plotting ERPs with 95% CI

Plotting single subjects' summary statistics.

The same principle applies to plot single subjects, simply select the file called myname_single_subjects_xxx.mat.

What is saved on the drive?

(myname)(stat1)of(stat2).mat (for instance myname_Means_of_Means.mat) -- this file is a structure called Data
Data.stat contains the summary statistics. For instance Data.mean contains in the last dimension the lower bound of the CI, mean and upper bound of the CI for a given Beta (column of the design matrix).
Data.limo contains info needed to build a meaningful plot (time, sampling, channels).

_(myname)single_subjects(stat1).mat (for instance myname_single_subjects_Means.mat) -- this file is a structure called Data
Data.stat contains the summary statistics. For instance Data.mean contains in the last dimension the average of each subject.
Data.limo contains info needed to build a meaningful plot (time, sampling, channels).