Description Usage Arguments Details Value Author(s) See Also Examples
Creates an image plot of posterior correlations between model parameters from an MCMC simulation.
1 |
mcmcout |
posterior draws. This argument will be coerced to an |
parms |
character vector specifying which subsets of parameters to plot. If |
regex |
character vector of regular expressions denoting groups of parameters to plot. |
random |
integer specifying how many parameters from each group will be randomly selected for plotting. This argument is useful when |
col |
colors to be used in the plot. |
... |
further arguments that are passed to the |
The parcorplot
is a wrapper function to corplot
that allows the use of arguments parms
, regex
, and random
to conveniently select parameters from an MCMC simulation to plot with corplot
.
Creates a plot.
S. McKay Curtis
1 2 3 4 5 6 7 8 9 10 11 12 | Rho1 <- outer(1:10, 1:10, function(i, j) 0.5^(abs(i-j)))
Rho2 <- outer(1:5, 1:5, function(i, j) 0.25^(i!=j))
dat1 <- t(apply(matrix(rnorm(10*1000), 1000, 10), 1, function(z, Rho1) t(Rho1)%*%z, Rho1))
dat2 <- t(apply(matrix(rnorm(5*1000), 1000, 5), 1, function(z, Rho2) t(Rho2)%*%z, Rho2))
colnames(dat1) <- paste("theta[", 1:10, "]", sep="")
colnames(dat2) <- paste("alpha[", 1:5, "]", sep="")
dat <- cbind(dat1, dat2)
parcorplot(dat, "theta", col=gray(31:0/31), cex.axis=0.75)
parcorplot(dat, col=heat.colors(31), cex.axis=0.75)
parcorplot(dat, col=topo.colors(31), cex.axis=0.75)
parcorplot(dat, col=terrain.colors(31), cex.axis=0.75)
parcorplot(dat, col=cm.colors(31), cex.axis=0.75)
|
Loading required package: coda
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.