postglmcoef.Rd
postglmcoef
computes posterior mean (or median) of a 2D GLM coefficients map (e.g., corresponding to a single brain slice) of a regressor using the posterior mean (or median) of the corresponding wavelet coefficients in the inverse discrete wavelet transform for each subject based on multi-subject or single subject analyses (see References).
postglmcoef(n, grid, glmcoefstd, postmeanwaveletcoef,
wave.family="DaubLeAsymm", filter.number=6, bc="periodic")
Number of subjects.
The number of voxels in one row (or, one column) of the brain slice of interest. Must be a power of 2. The total number of voxels is grid^2
. The maximum value of grid
for this package is 512.
An array of dimension (n,grid,grid)
, containing for each subject the standardized GLM coefficients obtained by fitting GLM to the time-series corresponding to the voxels.
A matrix of size (n,grid^2-1)
, containing for each subject the posterior mean of the wavelet coefficients of all levels stacked together (by the increasing order of resolution level).
The family of wavelets to use - "DaubExPhase" or "DaubLeAsymm". Default is "DaubLeAsymm".
The number of vanishing moments of the wavelet. Default is 6.
The boundary condition to use - "periodic" or "symmetric". Default is "periodic".
A list containing the following.
An array of dimension (n,grid,grid)
, containing for each subject the posterior means of the standardized GLM coefficients.
The wavelet transformation and reconstruction are performed by using the functions imwd
and imwr
, respectively.