Reads MCMC output.
Arguments
- file
A
character
string giving the name of the CSV file which the data are to be read from.- ...
Currently not used.
- calendar
A
aion::TimeScale
object specifying the calendar (seeaion::calendar()
). It should beaion::CE()
unless you change the default settings in 'ChronoModel'.- sep
A
character
string specifying the field separator character (seeutils::read.table()
).- dec
A
character
string 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