plot.bmrm: Produce plots of the parameter estimates

View source: R/plot.bmrm.R

plot.bmrmR Documentation

Produce plots of the parameter estimates

Description

Produce plots of the estimated posterior mean and 95% posterior intervals of A,P, Sigma based on the MCMC samples in bmrm.

Usage

## S3 method for class 'bmrm'
plot(x, type = "both", ...)

Arguments

x

an object of class bmrm, the output of the function bmrm

type

name of a variable (default="P"). It should be one of "P"(source composition or profile matrix P), "A"(source contribution matrix A), "both" (both P and A), "Sigma" (error variance).

...

arguments to be passed to methods

Details

The following types of plots are drawn depending on the selected parameters:

  • P: bar plots of the posterior means with 95% posterior intervals of elements for each row of P

  • A: time series plots of posterior means with 95% posterior intervals elements for each column of A

  • Sigma: posterior means with error bars for 95% posterior intervals of elements of Sigma

Value

plot


bayesMRM documentation built on Dec. 28, 2022, 1:36 a.m.

Related to plot.bmrm in bayesMRM...