summary | R Documentation |
Calculates summary statistics of the output of the MCMC algorithm for multiple parameters. Results are given in calendar years (BC/AD).
## S4 method for signature 'MCMC'
summary(object, level = 0.95, calendar = getOption("ArchaeoPhases.calendar"))
## S4 method for signature 'PhasesMCMC'
summary(object, level = 0.95, calendar = getOption("ArchaeoPhases.calendar"))
object |
An |
level |
A length-one |
calendar |
A |
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.
Maximum value of the MCMC chain.
Lower boundary of the credible interval
of the MCMC chain at level
.
Upper boundary of the credible interval
of the MCMC chain at level
.
A. Philippe, M.-A. Vibet, T. S. Dye, N. Frerebeau
Other statistics:
interval_credible()
,
interval_hdr()
,
sensitivity()
## Coerce to MCMC
eve <- as_events(mcmc_events, calendar = CE(), iteration = 1)
## Summary
summary(eve, calendar = CE())
summary(eve, calendar = BP())
## Plot events
plot(eve, calendar = CE(), interval = "credible", level = 0.68)
plot(eve, calendar = BP(), interval = "hdr", level = 0.68)
plot(eve[, 1], interval = "hdr")
## Compute phases
pha <- phases(eve, groups = list(B = c(2, 4), A = c(1, 3)))
## Summary
summary(pha, calendar = CE())
summary(pha, calendar = BP())
## Plot phases
plot(pha, calendar = BP())
plot(pha, succession = "hiatus")
plot(pha, succession = "transition")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.