View source: R/flags_to_nuis_spikes.R
flags_to_nuis_spikes | R Documentation |
Convert flagged volumes to corresponding one-hot encoded vectors which can be used for nuisance regression.
flags_to_nuis_spikes(flags, n_time)
flags |
Numeric vector of integers indicating the indices of
the flagged volumes. Or, a logical vector of length |
n_time |
The length of the vectors to obtain. For nuisance regression,
this is the length of the BOLD data. The highest index in |
A numeric matrix of ones and zeroes. The number of rows will be
n_time
and the number of columns will be the number of flags. Each
column will have a 1
at the flag index, and 0
elsewhere.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.