SPM12 fMRI First Level Model

build_spm12_first_level(
  ...,
  outdir = NULL,
  est_args = list(write_residuals = FALSE, method = "Classical", bayesian = NULL),
  verbose = TRUE
)

spm12_first_level(
  ...,
  outdir = NULL,
  est_args = list(write_residuals = FALSE, method = "Classical", bayesian = NULL),
  add_spm_dir = TRUE,
  spmdir = spm_dir(verbose = verbose, install_dir = install_dir),
  clean = TRUE,
  verbose = TRUE,
  install_dir = NULL
)

Arguments

...

Arguments passed to build_spm12_first_level_spec

outdir

output directory for results

est_args

Arguments passed to build_spm12_fmri_est

verbose

Print diagnostic messages

add_spm_dir

Add SPM12 directory from this package

spmdir

SPM dir to add, will use package default directory

clean

Remove scripts from temporary directory after running

install_dir

directory to download SPM12

Value

A list of objects, including an spm object and output files.