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
Copy file name to clipboardExpand all lines: docs/src/reference/type1.jl
+4-5Lines changed: 4 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ signal = MixedModelComponent(;
37
37
# Let's move the actual simulation into a function, so we can call it many times.
38
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!
39
39
functionrun_fun(r)
40
-
data, events=simulate(
40
+
data, evts=simulate(
41
41
MersenneTwister(r),
42
42
design,
43
43
signal,
@@ -46,10 +46,10 @@ function run_fun(r)
46
46
return_epoched=true,
47
47
)
48
48
data =reshape(data, size(data, 1), :)
49
-
data = data[:, events.condition.=="small"] .- data[:, events.condition.=="large"]
49
+
data = data[:, evts.condition.=="small"] .- data[:, evts.condition.=="large"]
@@ -68,7 +68,6 @@ sig = pval_uncorrected .<= 0.025;
68
68
# For the uncorrected p-values based on the t-distribution, we get a type1 error over "time":
69
69
mean(sig)
70
70
71
-
# this is the type 1 error of 5% we expected.
72
71
73
72
# !!! note
74
73
# Type-I error is not the FWER (family wise error rate). FWER is the property of a set of tests (in this case tests per time-point), we can calculate it by repeating such tests,
Copy file name to clipboardExpand all lines: src/cluster.jl
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ Optional
18
18
- `statfun` / `statfun!` a function that either takes one or two arguments and aggregates over last dimension. in the two argument case we expect the first argument to be modified inplace and provide a suitable Vector/Matrix.
19
19
- `sidefun`: default `abs`. Provide a function to be applied on each element of the output of `statfun`.
20
20
- `permfun` function to permute the data, should accept an RNG-object and the data. can be inplace, the data is copied, but the same array is shared between permutations
21
-
21
+
- `show_warnings`: default `true` - function to suppress warnings, useful for simulations
@warn"Your data shows a cluster that starts before the first sample, or ends after the last sample. There exists a fundamental limit in the ClusterDepth method, that the clusterdepth for such a cluster cannot be determined. Maybe you can extend the epoch to include more samples?"
0 commit comments