View source: R/rank1_estimation.R
estimate_r1_glms | R Documentation |
This function estimates single-trial (or single-condition) betas in a rank-1
framework by splitting the design matrix xdat$X
into a list of separate
sub-designs (X_list
), one for each condition (or event). It then calls
r1_glms_betas()
to jointly estimate the HRF shape and the per-condition
amplitudes.
estimate_r1_glms(dset, xdat, hrf_basis, hrf_ref, maxit = 100)
dset |
An |
xdat |
A list typically returned by
|
hrf_basis |
A |
hrf_ref |
A length- |
maxit |
Maximum number of L-BFGS-B iterations (default 100) |
This is the “Rank-1 GLM with Separate Designs” approach (sometimes
called the Mumford method). We partition xdat$X
into k
sub-designs,
each n \times m
. For each voxel, we remove the baseline using
lsfit
and call r1_glms_betas
to solve for the
event-wise betas under a rank-1 HRF constraint.
A list containing:
beta_matrix |
A |
estimated_hrf |
A |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.