mvcorrplot {bayesGAM}R Documentation

Multivariate response correlation plot for bayesGAMfit objects

Description

Creates a correlation plot of the multivariate responses based on corrplot

Usage

## S4 method for signature 'bayesGAMfit'
mvcorrplot(object, ...)

Arguments

object

model object of class bayesGAMfit

...

Additional parameters passed to corrplot.mixed

Value

corrplot object

References

Taiyun Wei and Viliam Simko (2017). R package corrplot: Visualization of a Correlation Matrix (Version 0.84).

Examples


require(MASS)
sig <- matrix(c(1, 0.5, 0.5, 1), ncol=2)
set.seed(123)
Y <- mvrnorm(50, mu=c(-2, 2), Sigma=sig)
dat <- data.frame(id = rep(1:5, each=10),
                  y1 = Y[, 1], 
                  y2 = Y[, 2])

f <- bayesGAM(cbind(y1, y2) ~ 1, random = ~factor(id), 
              data=dat, 
              a = normal(c(0, 5)), 
              chains = 1, iter = 500)
mvcorrplot(f)


[Package bayesGAM version 0.0.2 Index]