multi_marginal_statistics {ArchaeoPhases} | R Documentation |
Calculates summary statistics of the output of the MCMC algorithm for multiple parameters. Results are given in calendar years (BC/AD).
multi_marginal_statistics( data, position = 1:ncol(data), level = 0.95, round_to = 0 )
data |
Data frame containing the output of the MCMC algorithm. |
position |
Numeric vector containing the positions of the columns corresponding to the MCMC chains of interest, or a vector of column names. |
level |
Probability corresponding to the level of confidence used for the credible interval and the highest posterior density region. |
round_to |
Integer indicating the number of decimal places. |
A data frame where the rows correspond to the chains of interest and columns to the following statistics:
The mean of the MCMC chain.
The standard deviation of the MCMC chain.
Minimum value of the MCMC chain;
First quantile of the MCMC chain;
Median of the MCMC chain;
Third quantile of the MCMC chain; and
Maximum value of the MCMC chain.
Lower credible interval of the MCMC chain at level
.
Upper credible interval of the MCMC chain at level
.
Anne Philippe, Anne.Philippe@univ-nantes.fr,
Marie-Anne Vibet, Marie-Anne.Vibet@univ-nantes.fr, and
Thomas S. Dye, tsd@tsdye.online
data(Events) multi_marginal_statistics(Events, 2:5) multi_marginal_statistics(Events, 2:5, level = 0.90) ## round to decades multi_marginal_statistics(Events, 2:5, round_to = -1)