You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -33,19 +37,32 @@ signal = MixedModelComponent(;
33
37
# Let's move the actual simulation into a function, so we can call it many times.
34
38
# Note that we use (`RedNoise`)[https://unfoldtoolbox.github.io/UnfoldSim.jl/dev/literate/reference/noisetypes/] which has lot's of Autocorrelation between timepoints. nice!
# let's have a look at the actual data by running it once, plotting condition wise trials, the ERP and histograms of uncorrected and corrected p-values
# Finally, let's calculate the percentage of simulations where we find a significant effect somewhere
87
105
mean(res .>0, dims=1) |> x -> (:clusterdepth=> x[1], :uncorrected=> x[2])
88
106
89
-
# Nice, correction seems to work in principle :) Clusterdepth is not exactly 5%, but with more repetitions we should get there (e.g. with 5000 repetitions, we get 0.051%).
107
+
# Nice, correction seems to work in principle :) Clusterdepth is not necessarily exactly 5%, but with more repetitions we should get there (e.g. with 5000 repetitions, we got 0.051%).
90
108
91
109
# !!! info
92
-
# if you look closely, the `:uncorrected` value (around 60%) is not as bad as the 99% promised in the introduction. This is due to the correlation between the tests introduced by the noise. Indeed, a good exercise is to repeat everything, but put `RedNoise` to `WhiteNoise`
110
+
# if you look closely, the `:uncorrected` value (can be around 60%) is not as bad as the 99% promised in the introduction. This is due to the correlation between the tests introduced by the noise. Indeed, a good exercise is to repeat everything, but put `RedNoise` to `WhiteNoise`
Copy file name to clipboardExpand all lines: docs/src/tutorials/eeg-multichannel.jl
+37-15Lines changed: 37 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -6,16 +6,18 @@ using Unfold
6
6
using UnfoldMakie
7
7
using Statistics
8
8
9
-
# ## How to use clusterDepth multiple comparison correction on multichannel data
9
+
# # How to use the ClusterDepth multiple comparison correction on multichannel data
10
10
11
-
# This tutorial is adapted from the first EEG example and uses the HArtMuT NYhead model (https://github.com/harmening/HArtMuT) to simulate multiple channels.
11
+
# This tutorial is adapted from the single-channel EEG example, and complements it with the HArtMuT NYhead model (https://github.com/harmening/HArtMuT) to simulate multiple channels.
12
12
13
13
# First set up the EEG simulation as before, with one subject and 40 trials:
14
-
design =SingleSubjectDesign(conditions=Dict(:condition=> ["car", "face"])) |> x ->RepeatDesign(x, 40);
0 commit comments