stat.statMap | R Documentation |
Returns a statistical niftiImage object from a statMap object
stat.statMap(x, method = c("p", "S", "chisq"))
x |
the statMap object to extract a coefficient niftiImage from |
method |
the scale of visualization, chi-squared statistic, effect size (S=RESI), p-value. If df is equal to 1, the maps are scaled by the sign of the coefficient. |
a niftiImage object of the chi-square statistical image.
# loading example data
library(pain21)
pain = pain21()
pdata = pain$data
# fitting regression of images onto study sample size, weights proportional to study sample size
pbjModel2 = lmPBJ(images=pdata$images, form=~n, formred=~1, W = pdata$n, mask=pain$mask, data=pdata)
stat.statMap(pbjModel2)
stat.statMap(pbjModel2, method='chisq')
stat.statMap(pbjModel2, method='S')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.