plot.hcoef.post: Plot Method for Hierarchical Model Coefficients

Description Usage Arguments Details See Also Examples

View source: R/plot.hcoef.post.R

Description

plot.hcoef.post plots arrays of hierarchical coefficients.

Usage

1
2
## S3 method for class 'hcoef.post'
plot(x,spmname,spm, burnin=trunc(.1*R), nsamp=30, ...)

Arguments

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

Details

See description of similar function in bayesm::plot.bayesm.hcoef.

See Also

cudaMultireg.slice, pmeans.hcoef, regpostsim, post.simul.hist, post.simul.betadraw

Examples

 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)

cudaBayesreg documentation built on May 29, 2017, 6:19 p.m.