plotMcmcTrace: Plot the MCMC trace

Description Usage Arguments Details Examples

View source: R/Plots.R

Description

Plot the MCMC trace

Usage

1
plotMcmcTrace(mcmcNull, fileName = NULL)

Arguments

mcmcNull

An object of type mcmcNull as generated using the fitMcmcNull function.

fileName

Name of the file where the plot should be saved, for example 'plot.png'. See the function ggsave in the ggplot2 package for supported file formats.

Details

Plot the trace of the MCMC for diagnostics purposes.

Examples

1
2
3
4
5
6
7
## Not run: 
data(sccs)
negatives <- sccs[sccs$groundTruth == 0, ]
null <- fitMcmcNull(negatives$logRr, negatives$seLogRr)
plotMcmcTrace(null)

## End(Not run)

OHDSI/EmpiricalCalibration documentation built on June 26, 2018, 7:12 a.m.