multirec | R Documentation |
This is a function that returns the weight vector of multiple components obtained by the msma
function applied after dimension reduction by the radial basis function to the same dimension as the original image.
multirec(
object,
imagedim,
B = NULL,
mask = NULL,
midx = 1,
comps = NULL,
XY = c("X", "Y", "XY")[1],
signflip = FALSE
)
object |
an object of class |
imagedim |
a vector for original dimension. |
B |
a list or a matrix. |
mask |
a list or a matrix. |
midx |
a block number. |
comps |
a component sequence to be plotted. |
XY |
a character, indicating "X" or "Y". "XY" for the scatter plots using X and Y scores from |
signflip |
a logical if the sign in the block is flipped to pose the super as possitive. |
multirec
requires the output result of msma
function.
data(baseimg)
data(diffimg)
data(mask)
img1 = simbrain(baseimg = baseimg, diffimg = diffimg, mask=mask)
B1 = rbfunc(imagedim=img1$imagedim, seppix=2, hispec=FALSE, mask=img1$brainpos)
SB1 = basisprod(img1$S, B1)
fit111 = msma(SB1, comp=2)
ws = multirec(fit111, imagedim=img1$imagedim, B=B1, mask=img1$brainpos)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.