TracePlots: Parameter posterior trace plots for a R2BGLiMS results object

Description Usage Arguments Value Author(s) Examples

View source: R/TracePlots.R

Description

Generates posterior trace plots for a R2BGLiMS results object

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
TracePlots(
  results,
  vars.to.include = NULL,
  var.dictionary = NULL,
  predictors.only = FALSE,
  file = NULL,
  add.to.title = NULL,
  par.mfrow = NULL,
  add.panel.labels = FALSE
)

Arguments

results

A R2BGLiMS_Results-class object frum running the R2BGLiMS command.

var.dictionary

Character vector containing a mapping of covariate names to substitutions for the plot. The names of the elements are the variable names as in the original analysis (i.e. as named in the results object).

predictors.only

If true only chain plots for predictors are plotted (and intercept, likelihood etc. are excluded). Default is FALSE.

file

PDF path

add.to.title

Optional character string to add to the start of each plot title

par.mfrow

Allow passing the mfrow layout vector to par. Default par(mfrow=c(5,2))

add.panel.labels

Add lower case letter labels to panel titles. Default FALSE. Note: Does not work when providing a var.dictionary

Value

NA

Author(s)

Paul Newcombe

Examples

1
2
3
4
5
6
library(R2BGLiMS)

### --- Logistic regression with two model space prior components
# Load results from the biopsy logistic regression analysis (see R2MHRJ examples)
data(biopsyResults)
TracePlots(biopsyResults)

pjnewcombe/R2BGLiMS documentation built on Feb. 10, 2020, 8:52 p.m.