Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
c6d1647
shortening of filename for page
schoffelen Sep 26, 2024
1f56ab6
DOC - shortened some filenames
schoffelen Sep 28, 2024
1eb446e
shortened filenames
schoffelen Sep 28, 2024
6eae829
Refactor FAQ URLs for consistency
schoffelen Sep 28, 2024
577c01c
shortened filenames
schoffelen Sep 29, 2024
cad3458
shortened filenames
schoffelen Sep 29, 2024
f8080e4
shortened filenames
schoffelen Sep 29, 2024
a9fce25
shortened filenames
schoffelen Sep 29, 2024
1f45086
shortened filenames
schoffelen Sep 29, 2024
c971f06
shortened filenames
schoffelen Sep 29, 2024
c3f910f
shortened filenames
schoffelen Sep 29, 2024
5cf41a6
image folder renames
schoffelen Sep 29, 2024
6616b8e
filename shortening and folder renames
schoffelen Sep 29, 2024
dc880d2
filename shortening
schoffelen Sep 29, 2024
f2e6663
filename shortening and folder renames
schoffelen Sep 30, 2024
9faf976
filename shortening and folder rename
schoffelen Sep 30, 2024
e1fe6c7
filename shortening
schoffelen Sep 30, 2024
b777349
filename shortening
schoffelen Sep 30, 2024
0ab6140
filename shortening and folder renames
schoffelen Oct 1, 2024
cf94cb7
filename shortening
schoffelen Oct 14, 2024
ba8e652
filename shortening and folder renames
schoffelen Oct 22, 2024
d6c5502
used copilot to efficiently add redirect-from lines
schoffelen Oct 22, 2024
d3a00ec
filename shortening and folder renames
schoffelen Oct 22, 2024
719db2d
filename shortening
schoffelen Oct 22, 2024
1587e5c
shortened filename
schoffelen Nov 18, 2024
226d26b
shortened filenames
schoffelen Nov 18, 2024
ace2d15
filename shortening and folder renaming
schoffelen Nov 18, 2024
c5f70cb
filename shortening and folder renames
schoffelen Nov 18, 2024
613d67a
forgot this one
schoffelen Nov 18, 2024
aa08b4b
Merge branch 'master' into fname_short
schoffelen Nov 18, 2024
8c4dd63
FIX typos causing broken links
schoffelen Nov 27, 2024
b3c0861
FIX redirect-from should be with an underscore
robertoostenveld Nov 28, 2024
b84694b
fixed redirects, there was a typo in the old page name
robertoostenveld Nov 28, 2024
e3c9199
fixed broken links to reference documentation
robertoostenveld Nov 28, 2024
2488e22
FIX - broken links
robertoostenveld Nov 28, 2024
e0cc3b8
FIX - added space after - in redirect_from
robertoostenveld Nov 28, 2024
fbefc82
FIX - broken links
robertoostenveld Nov 28, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 7 additions & 11 deletions development/project/design.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Explain how to create cfg.design for ft_statistics
title: Explain how to create cfg.design for ft_xxxstatistics
---

{% include /shared/development/warning.md %}
Expand All @@ -10,14 +10,13 @@ cfg.design as input into ft_statistics (freq, timelock, or source) should be des

M is variable length. Along with cfg.design, the other options cfg.ivar, cfg.uvar, cfg.wvar, and cfg.cvar may also need to be specified. They are an index (indices) into which row(s) of the cfg.design correspond to 'independent variables', 'units of observation', 'within-block variables' and 'control variables', respectively.

Not all are needed: see statistics\_\*.m for what vectors it may include.
Not all are needed: see statistics_xxx_.m for what vectors it may include.

See https://www.fieldtriptoolbox.org/walkthrough#non-paired_comparison and https://www.fieldtriptoolbox.org/walkthrough#paired_comparison for examples on ivar and uvar.
and https://www.fieldtriptoolbox.org/development/statistics for uvar.
See https://www.fieldtriptoolbox.org/walkthrough#non-paired_comparison and https://www.fieldtriptoolbox.org/walkthrough#paired_comparison for examples on ivar and uvar, and https://www.fieldtriptoolbox.org/development/statistics for uvar.

Is there any explanation on the website for more on uvar and wvar? (Seems it is all on the email discussion list specific to people's questions).

##### links to already existing pages with some mention of design matrix
## links to already existing pages with some mention of design matrix

- https://www.fieldtriptoolbox.org/walkthrough
- https://www.fieldtriptoolbox.org/getting_started/biosemi
Expand All @@ -31,16 +30,13 @@ Is there any explanation on the website for more on uvar and wvar? (Seems it is
- https://www.fieldtriptoolbox.org/development/statistics
- https://www.fieldtriptoolbox.org/development/multivariate

##### Hierarchy of functions
## Hierarchy of functions

(figure/diagram helpful https://www.fieldtriptoolbox.org/development/statistics)

User calls ft\_\*statistics (freq, timelock, or source)
User calls ft_xxxstatistics (freq, timelock, or source) with cfg.method=xxx as different methods for calculating probability of null hypothesis, will call function: statistics_xxx.

cfg.method: different methods for calculating probability of null hypothesis
will call function: statistics_(cfg.method)

however, in ft_sourcestatistics, instead statistics(cfg.method) is called, or statistics_wrapper if no method specified.
However, in ft_sourcestatistics, instead statistics_xxx is called, or statistics_wrapper if no method specified.

statistics_montecarlo.m (only) calls resampledesign.m

Expand Down
6 changes: 3 additions & 3 deletions development/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ For example, let's say you made a modification to the **[ft_preprocessing](/refe
% continue with the ones that specify the WALLTIME, MEG, DATA and DEPENDENCY
filtered_test = test(~skip,:);

You can then select the tests that for example depend on **[ft_preprocessing](/ft_preprocessing)**.
You can then select the tests that for example depend on **[ft_preprocessing](/reference/ft_preprocessing)**.

keepRows = contains(filtered_test.dependency, 'ft_preprocessing');
filtered_test = filtered_test(keepRows, :);

Expand Down Expand Up @@ -171,7 +171,7 @@ To link related scripts to background information on issues, please first file a

**Method C**: If that is also not possible, the result of the algorithm on a particular real-world dataset has to be interpreted as being correct, and that solution should be reused as reference solution (i.e. regression testing). For example, if a function calculates the [forward solution](https://www.fieldtriptoolbox.org/tutorial/headmodel_meg/) for a certain subject then it should be tested against a reference solution, which could be the forward solution of a subject in MNI coordinates.

Tests that need to load test data should include **[dccnpath](/utilities/dccnpath)** to ensure that every user has the correct path to the test data. This function takes as _input_ the path to where the file is located on DCCN central storage and compute cluster; the _output_ is the corresponding path to the file on your local computer. Publicly available data is downloaded automatically from the [download server](https://download.fieldtriptoolbox.org/).
Tests that need to load test data should include **[dccnpath](/reference/utilities/dccnpath)** to ensure that every user has the correct path to the test data. This function takes as _input_ the path to where the file is located on DCCN central storage and compute cluster; the _output_ is the corresponding path to the file on your local computer. Publicly available data is downloaded automatically from the [download server](https://download.fieldtriptoolbox.org/).

When you create a new test script, you should always include a _list of requirements and dependencies_ at the beginning of the script. For instance:

Expand Down
Loading