Description Usage Arguments Details See Also Examples
View source: R/plot.hcoef.post.R
plot.hcoef.post
plots arrays of hierarchical coefficients.
1 2 |
x |
betadraw object generated by the MCMC simulation |
spmname |
name associated with the thresholded voxels, e.g. "activated", "non-activated" |
spm |
threshold active, or non-active voxel, coefficients |
burnin |
n. of draws to burnin, def: .1*R |
nsamp |
number of random voxels to use in the plots (default: 30) |
... |
standard graphics parameters |
See description of similar function in bayesm::plot.bayesm.hcoef
.
cudaMultireg.slice
,
pmeans.hcoef
,
regpostsim
,
post.simul.hist
,
post.simul.betadraw
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run:
## load simulation
fsave <- paste(tempdir(),"/simultest1",fileext = ".sav", sep="")
load(file=fsave)
cat("loaded",fsave,"\n")
vreg <- 2
pmeans <- pmeans.hcoef(out$betadraw)
px <- regpostsim(pmeans, vreg=vreg)
spma <- px$spma # active voxels
spmn <- px$spmn # non-active voxels
plot(out$betadraw,spmname="activated",spm=spma)
plot(out$betadraw,spmname="non-activated",spm=spmn)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.