Description Usage Arguments Value Examples
View source: R/spm12_regressor.R
Build Regressors for SPM12 first level model
1 2 3  spm12_regressor(name, value, n_time_points)
spm12_regressor_list(reg, n_time_points)

name 
Name of the regressor 
value 
Value of the regressor, must be the same length as

n_time_points 
Number of time points for the analysis 
reg 
List of regressors 
A list of objects, each with a name
and value
1 2 3 4 5 6 7 8 9  res = spm12_regressor(name = "condition1", value = c(
rep(1, 10), rep(0, 10)), n_time_points = 20)
print(res)
L = list(
cond1 = list(value = c(rep(1, 10), rep(0, 10)), n_time_points = 20),
cond2 = list(value = c(rep(0, 10), rep(1, 10)), n_time_points = 20)
)
res = spm12_regressor_list(L, n_time_points = 20)
print(res)

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.