correlation_posterior: Plot the correlation matrix of the output

View source: R/correlation_posterior.R

correlation_posteriorR Documentation

Plot the correlation matrix of the output

Description

Compute and plot the correlation matrix of the parameters obtained from a MCMC fit. It returns a n-by-n matrix, where n is the number of parameters.

Usage

correlation_posterior(FOIfit, show_coefficients = TRUE)

Arguments

FOIfit

An object of the class FOIfit.

show_coefficients

Boolean. If TRUE, shows the value of the correlation coefficient on the plotted matrix. Default = TRUE.

Value

The correlation matrix.

Author(s)

Nathanael Hoze nathanael.hoze@gmail.com

Examples

data('two_peaks_simulation')
model <- FOImodel('outbreak',K=2, background = 1)
F <- fit(data=data, model=model)
M <- correlation_posterior(F)

nathoze/Rsero documentation built on Oct. 22, 2024, 6:43 p.m.