Reads MCMC output.
Arguments
- file
A
characterstring giving the name of the CSV file which the data are to be read from.- ...
Currently not used.
- calendar
A
aion::TimeScaleobject specifying the calendar (seeaion::calendar()). It should beaion::CE()unless you change the default settings in 'ChronoModel'.- sep
A
characterstring specifying the field separator character (seeutils::read.table()).- dec
A
characterstring specifying the character used in the file for decimal points (seeutils::read.table()).
Value
An EventsMCMC or a PhasesMCMC object.
References
Lanos, Ph., Philippe, A. & Dufresne, Ph. (2015). Chronomodel: Chronological Modeling of Archaeological Data using Bayesian Statistics. URL: https://chronomodel.com/.
Examples
if (requireNamespace("ArchaeoData", quietly = TRUE)) {
## Construct the paths to the data
path <- file.path("chronomodel", "ksarakil")
path_events <- system.file(path, "Chain_all_Events.csv", package = "ArchaeoData")
path_phases <- system.file(path, "Chain_all_Phases.csv", package = "ArchaeoData")
## Import ChronoModel events
(chrono_events <- read_chronomodel_events(path_events))
## Import ChronoModel phases
(chrono_phases <- read_chronomodel_phases(path_phases))
}
#> <PhasesMCMC>
#> - Number of phases: 4
#> - Number of MCMC samples: 30000