plotprior {MCMCglmm}R Documentation

Histogram of draws from the prior distribution for the variance structure of an MCMCglmm model

Description

Samples from the prior distribution of the R-structure and G-structure used in MCMCglmm models, and plots the histograms

Usage

plotprior(prior, cor=FALSE, n=1000, ask = dev.interactive(), ...)

Arguments

prior list of prior variance-structure specifications having 2 possible elements: the R (R-structure) and G (G-structure) specifying the expected (co)variances (V) and degree of belief parameter
cor logical; if TRUE, the prior correlation matrices are generated
n integer: number of samples to be drawn
ask logical: prompt user before each page of plots
... Further arguments

Author(s)

Jarrod Hadfield j.hadfield@ed.ac.uk

See Also

rIW

Examples

prior=list(R=list(V=diag(2), n=2),
           G=list(G1=list(V=diag(2), n=3),
                  G2=list(V=diag(2), n=4)))
plotprior(prior, cor=TRUE)
plotprior(prior, cor=FALSE, xlim=c(-1,5))

[Package MCMCglmm version 2.01 Index]