Description Usage Arguments Value Examples
View source: R/spm12_condition.R
Build Conditions for SPM12 first level model
1 2 3 4 5 6 7 8 9 10 | spm12_condition(
name,
onset,
duration,
time_mod_order = 0,
param_mod = NULL,
orth = TRUE
)
spm12_condition_list(cond)
|
name |
Name of the condition |
onset |
vector of onset of the condition |
duration |
vector of duration of the condition,
must be the same length as |
time_mod_order |
time modulation order. This option allows for the characterization of linear or nonlinear time effects. Zero means no modulation |
param_mod |
parametric modulation. Not currently
supported in |
orth |
Orthogonalize the regressors within trial types. |
cond |
List of conditions |
A list of objects, each with a name
, onset
,
duration
, and other condition values.
1 2 3 4 5 6 7 8 9 10 11 |
$name
[1] "'condition1'"
$onset
[1] "[0, 2, 4, 6, 8];"
$duration
[1] "[1, 1, 1, 1, 1];"
$tmod
[1] 0
$pmod
[1] "struct('name', {}, 'param', {}, 'poly', {})"
$orth
[1] 1
$`(1)`
$`(1)`$name
[1] "'cond1'"
$`(1)`$onset
[1] "[0, 2, 4, 6, 8];"
$`(1)`$duration
[1] "[1, 1, 1, 1, 1];"
$`(1)`$tmod
[1] 0
$`(1)`$pmod
[1] "struct('name', {}, 'param', {}, 'poly', {})"
$`(1)`$orth
[1] 1
$`(2)`
$`(2)`$name
[1] "'cond2'"
$`(2)`$onset
[1] "[1, 3, 5, 7, 9];"
$`(2)`$duration
[1] "[1, 1, 1, 1, 1];"
$`(2)`$tmod
[1] 0
$`(2)`$pmod
[1] "struct('name', {}, 'param', {}, 'poly', {})"
$`(2)`$orth
[1] 1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.