Learn R Programming

cudaBayesreg (version 0.2-1)

post.simul.hist: Histogram of the posterior distribution of a regression coefficient

Description

post.simul.hist Postprocessing of MCMC simulation. Histogram of the posterior distribution of regression coefficient beta[vreg].

Usage

post.simul.hist(out,vreg = 2)

Arguments

out
List of output objects of MCMC simulation
vreg
regression variable to map; default (vreg=2)

concept

  • MCMC
  • plot
  • hierarchical model

Details

Post-process analysis

See Also

cudaMultireg.slice regpostsim post.ppm post.tseries

Examples

Run this code
slicedata <- read.fmrisample(slice=3)
fsave <- "/tmp/simultest.sav"
answ <- readline("Run MCMC simulation first ? ")
run <- FALSE
if (substr(answ, 1, 1) == "y") { run <- TRUE }
if(run) {
	out <- cudaMultireg.slice(slicedata, fsave=fsave )
} else {
	load(file=fsave)
	cat("loaded",fsave,"\n")
}
post.simul.hist(out=out, vreg=2)
post.simul.hist(out=out, vreg=4)

Run the code above in your browser using DataLab