dual_reg2 | R Documentation |
Wrapper to dual_reg
used by estimate_prior
. The format of BOLD
(and BOLD2
) must be provided, and template
must be vectorized if applicable.
dual_reg2(
BOLD,
BOLD2 = NULL,
format = c("CIFTI", "xifti", "GIFTI", "gifti", "NIFTI", "nifti", "RDS", "data"),
template,
template_parc_table = NULL,
mask = NULL,
keepA = FALSE,
scale = c("local", "global", "none"),
scale_sm_surfL = NULL,
scale_sm_surfR = NULL,
scale_sm_FWHM = 2,
nuisance = NULL,
scrub = NULL,
drop_first = 0,
hpf = 0,
TR = NULL,
GSR = FALSE,
Q2 = 0,
Q2_max = NULL,
NA_limit = 0.1,
brainstructures = "all",
resamp_res = NULL,
varTol = 1e-06,
maskTol = 0.1,
verbose = TRUE
)
BOLD , BOLD2 |
Subject-level fMRI data in one of the following formats:
a CIFTI file path, a If If |
format |
Expected format of |
template |
The group ICA map or parcellation as a (vectorized) numeric
matrix ( |
template_parc_table |
If the template is a parcellation, provide the
parcellation table here. Default: |
mask |
Required if and only if the entries of |
keepA |
Keep the resulting A matrices, or only return the S matrices (default)? |
scale |
|
scale_sm_surfL , scale_sm_surfR , scale_sm_FWHM |
Only applies if
If If To create a |
nuisance |
(Optional) Nuisance matrix to regress from the BOLD data.
If Nuisance regression is performed in a simultaneous regression with any spike
regressors from Note that the nuisance matrices should be provided with timepoints matching
the original |
scrub |
(Optional) Numeric vector of integers giving the indices
of volumes to scrub from the BOLD data. (List the volumes to remove, not the
ones to keep.) If Scrubbing is performed within a nuisance regression by adding a spike regressor to the nuisance design matrix for each volume to scrub. Note that indices are counted beginning with the first index in the
|
drop_first |
(Optional) Number of volumes to drop from the start of each
BOLD session. Default: |
hpf |
The frequency at which to apply a highpass filter to the data
during pre-processing, in Hertz. Default: Note the |
TR |
The temporal resolution of the data, i.e. the time between volumes,
in seconds. |
GSR |
Center BOLD across columns (each image)? This
is equivalent to performing global signal regression. Default:
|
Q2 , Q2_max |
Obtain dual regression estimates after denoising? Denoising is based on modeling and removing nuisance ICs. It may result in a cleaner estimate for smaller datasets, but it may be unnecessary (and time-consuming) for larger datasets. Set If |
brainstructures |
Only applies if the entries of |
resamp_res |
Only applies if the entries of |
varTol |
Tolerance for variance of each data location. For each scan,
locations which do not meet this threshold are masked out of the analysis.
Default: |
maskTol |
Tolerance for number of locations masked out due to low
variance or missing values. If more than this many locations are masked out,
this subject is skipped without calculating dual regression. If |
verbose |
Display progress updates? Default: |
The dual regression S matrices, or both the S
and A matrices if keepA
, or NULL
if dual
regression was skipped due to too many masked data locations.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.