Format design for BayesGLM
, fit_bayesglm
,
multiGLM
, and multiGLM_fun
.
BayesGLM_format_design(
design,
scale_design = TRUE,
nS_expect = NULL,
nT_expect = NULL,
nD_expect = NULL,
per_location_design = NULL
)
design
The design
argument input. Will be formatted to a
nS
-length list.
Scale the design matrix by dividing each column by its
maximum and then subtracting the mean? Default: TRUE
. If
FALSE
, the design matrix is centered but not scaled.
The expected number of sessions, if known.
The expected number of timepoints, if known. For multi-session data this is a session-length vector.
The expected number of designs, if known. For per-location
modeling this is equal to nVd0
, the initial number of data locations.
For multi-session data this is a session-length vector.
FALSE
if per-location modeling is not
being performed (i.e. for multiGLM); TRUE
if it is; or, NULL
to infer based on the dimensions of design
(TRUE
if the
design has three dimensions.)