If is.null(out_fname), the priors in data matrix,
"xifti", or "nifti" format, to match the format of the
original BOLD data. Otherwise, the paths to the new files specified by
out_fname. If prior includes functional connectivity components,
the FC prior and its mean and variance will be included.
Arguments
x
The result of estimate_prior
out_fname
Use NULL (default) to just return the prior
objects directly. Otherwise, use a character vector of length 3 or 4 of file
path(s) to save the output to:
the mean prior, the variance prior, the variance decomposition, and
the FC prior if present, in that order. If one file name is provided,
it will be appended with
"_mean.[file_ext]" for the prior mean map,
"_var.[file_ext]" for the prior variance map,
"_varDecomp.rds" for the variance decomposition, and
"_FC.rds" where [file_ext]
will be "dscalar.nii" for CIFTI input, "nii" for NIFTI input,
and "rds" for data input.