eratosthenes: Archaeological Synchronism

CRAN status DOI

The R package eratosthenes aims to provide a general, flexible toolkit for archaeological chronology-building by incorporating, computationally, all relevant sources of information on uncertain archaeological or historical dates. Archaeological dates are subject to relational conditions (via seriation or stratigraphic relationships) and absolute constraints (such as radiocarbon dates, datable artifacts, or other known historical events, as termini post or ante quos), which prompt the use of a joint conditional probability density to convey those relationships. The date of any one event can then be marginalized from that full, joint conditional distribution. Rcpp is used for faster sampling (Eddelbuettel and Balamuta 2018).

While software exists for calibrating and conditioning radiocarbon dates upon relative constraints, such as OxCal (Bronk Ramsey 2009) and BCal (Buck, Christen, and James 1999), as well as R packages oxcAAR (Hinz et al. 2021), Bchron (Haslett and Parnell 2008), and rcarbon (Crema, Bevan, and Shennan 2017), along with software for general chronological modeling like Chronomodel (Lanos and Philippe 2017) and ChronoLog (Levy et al. 2021), formal methods for dating artifacts and artifact types are lacking. One of the major goals of eratosthenes is to advance the synchronism of chronologies and the crafting of large-scale chronological models that rely heavily upon artifact typologies. The package therefore facilitates the marginalization of dates of a type’s production, use, and deposition. The method of sampling employed in eratosthenes involves a two-step process of Gibbs sampling, using consistent batch means (CBM) and Monte Carlo standard errors (MCSE) to determine convergence (Jones et al. 2006; Flegal, Haran, and Jones 2008). Finally, eratosthenes provides tools for analyzing the impact of events on each other with the conditional structure stipulated by the investigator, by implementing a jackknife-style estimator of squared displacement (how much the date of one event shifts when another is omitted). Ancillary functions include checking for discrepancies in sequences of events and constraining optimal seriations to known sequences.

The package is motivated by a philosophy of generalism and minimalism, eschewing the following:

The focus of the package is on the structure of the joint conditional, rather than specific probability models. Hence, eratosthenes relies on the continuous uniform for estimating relative events. Any model can however be used for absolute constraints, from single points to customized densities.

The package is named after Eratosthenes of Cyrene, author of the Chronographiai.

Installation

To install eratosthenes from CRAN, run the install.packages() function:

install.packages("eratosthenes")

To obtain the current development version of eratosthenes from GitHub, install the package in the R command line with remotes:

library(remotes)
install_github("scollinselliott/eratosthenes", dependencies = TRUE, build_vignettes = TRUE) 

Tutorial: Archaeological Example

The Dressel 1B type of amphora (a ceramic shipping container typical of the ancient Mediterranean) is a ceramic type defined on the basis of morphology, comprising a tall, long-necked, two-handled vessel with a concave collared rim and sharply defined, angular shoulder. To give just three chronological summaries of this type, the Dressel 1B type was produced/used/deposited:

Such determinations are the result of many comparisons of stratigraphic and single contexts where the Dressel 1B type has appeared in conjunction with absolute constraints (e.g., coinage, datable stamps, historical events in the occupation/destruction of sites). It is evident in the above statements, too, that there will be greater or lesser chronological discrepancies among investigators.

In order to obtain a probability density for any aspect of dating the Dressel 1B (that is, its production, use, and/or deposition), eratosthenes avoids the awkward synthesis of this chronological information by estimating dates directly from archaeological record itself, in the information provided by contexts (in sequences, howsoever established), finds, which are contained in those contexts, and absolute constraints for those contexts, as inputs. In other words, it formalizes the logic of dating finds which is already in practice, yielding a probability density instead of a qualitative appraisal of the object’s dates of production, use, and deposition.

The following aims to be a concrete tutorial that gives step-by-step instructions to obtain probability density functions on the production, use, and deposition of the Dressel 1B type using eratosthenes. Further information on the data for this tutorial is found in the eda20250628.rmd file located in the inst/ directory.

Creating a Sequences Object

There are two fundamental objects for sequences:

For example, the events object seq1 below gives a sequence of just two depositional contexts, from the archaeological site of Rirha in Morocco, Rirha US 5182 and Rirha US 5154, with Rirha US 5182 being the earlier of the two:

library(eratosthenes)
seq1 <- events("Rirha US 5182", "Rirha US 5154") 

Multiple sequences can, and typically will, be given. To define seven more sequences for this tutorial, we have additional deposits from the site of Carthage (Byrsa Hill) and also several shipwrecks (see the eda20250628.rmd file in the inst/ directory for more information):

seq2 <- events("Byrsa II B 19.4", "Byrsa II B 19.2")
seq3 <- events("Rirha US 5154", "Planier A")
seq4 <- events("El Sec", "Filicudi F", "Tour Fondue", "Cabrera 2", "Tour d'Agnello", "Sanguinaires A", "Lazaret")
seq5 <- events("Madrague de Giens", "Planier C", "Cap Béar C", "Planier A")
seq6 <- events("Cabrera 2", "Grand Congloué A", "Lazaret", "Byrsa II B 19.2", "Punta Scaletta", "Isla Pedrosa", "Cavalière", "Madrague de Giens")
seq7 <- events("Mazotos", "El Sec")
seq8 <- events("Grand Congloué A", "Héliopolis B", "Punta Scaletta")

A sequences object is then created which contains all of the events:

contexts <- sequences(seq1, seq2, seq3, seq4, seq5, seq6, seq7, seq8)

The sequences() function automatically checks that all events accord with one another. Both events() and sequences() will return error messages if the input is not valid (e.g., an event object contains duplicate entries, or multiple events have conflicting orderings). In such cases, seq_diag() function can be used to run a diagnostic check on a collection of events to see which events are in disagreement.

seq_invalid1 <- events("Madrague de Giens", "El Sec", "Cabrera 2")
contexts_invalid <- list(seq1, seq2, seq3, seq4, seq5, seq6, seq_invalid1, seq7, seq8)
seq_diag(contexts_invalid)

The seq_diag() proceeds iteratively through all events, and so if there are sequences of events which are assured to be valid, those should be placed earlier in the inputs. The shuffle argument in seq_diag() randomly permutes the order in which events are checked, and can be called to check discrepancies if there is no information about which events are more valid than others.

In sum, the sequences object contains all of the information about the relative relationships of the contexts, in terms of which come before or after one another, which should be based on a stated rationale (typically, sequences from a seriation, stratigraphic sequences, or even hypotheses).

Creating a Finds Object

Next, a separate object for the finds data is created. If a particular find has absolute chronological information associated with it (the object itself, not the type), it should not be created here, but rather as an absolute constraint (on which see below). To start, each find is a finds object with the following information:

id1 <- finds(id = "id 1",
             assoc = "Isla Pedrosa",
             type = "AMPH Dressel 1B",
             residual = TRUE)

Each find, indexed with an id, must be linked to a context given in the sequences above. Its appertaining context is entered into the assoc field. This particular entry comprises the find of Dressel 1B amphorae associated with the Isla Pedrosa shipwreck. These amphorae may in fact relate to another shipwreck (i.e., their association with this context may be spurious). By indicating residual = TRUE, the find remains associated with its context, but it will not be taken into account when estimating its date. This option applies whether finds are residual to a deposit (i.e., much earlier finds redeposited into a later deposit) or whether they are intrusive (i.e., much later finds have been associated with an earlier deposit). The type field provides information on any aspects of artifact classification or typology: here, the type AMPH Dressel 1B is entered. It should be noted that type is optional, and more than one entry can be given for type, as the next four types show:

id865 <- finds(id = "id 865", assoc = "Rirha US 5154", type = "AMPH Dressel 1B")
id1202 <- finds(id = "id 1202", assoc = "Madrague de Giens", type = "AMPH Dressel 1B")
id1285 <- finds(id = "id 1285", assoc = "Planier C", type = "AMPH Dressel 1B")
id1364 <- finds(id = "id 1364", assoc = "Cap Béar C", type = c("AMPH Dressel 1B", "AMPH Dressel 1B Tarraconensis"))

The last find, id1364, belongs to the production group of Dressel 1B amphorae produced in Spain, and so indicating its production subtype as another element in the type fields ensures that the find and its associated context will be used in estimating dates if an investigator is obtaining dates for either AMPH Dressel 1B or AMPH Dressel 1B Tarraconensis.

Finally, a single assemblage object is then created which contains all of the finds:

finds <- assemblage(id1, id865, id1202, id1285, id1364)

Creating Absolute Constraints Objects

Absolute constraints may be either termini post quos (t.p.q.) or termini ante quos (t.a.q.), which are created as absolute objects (see Absolute Constraints below). The structure of an absolute object is the same as that of a finds object, omitting the "residual" field, but requiring numeric input for the field "samples", which provide the absolute calendrical dates with which the absolute object is associated. Just as finds are contained within a single assemblage object, absolute objects are contained with constraints.

For example termini ante quos for this tutorial include the destruction of Carthage in 146 BCE, which the deposit B 19.2 on Byrsa Hill predates, as well as a range of conventional absolute dates, ca. 1-15 CE, for the Planier A shipwreck (to give a finite endpoint for this tutorial).

Carthage_Destr_1 <- absolute(id = "Carthage_Destr_1",
                         assoc = "Byrsa II B 19.2",
                        samples = -146)
Planier_A_abs <- absolute(id = "Planier_A_abs",
                      assoc = "Planier A",
                      samples = seq(1, 15, length.out = 100))

taq_info <- constraints(Carthage_Destr_1, Planier_A_abs)

The termini post quos are created in the same way. However, t.p.q. will often feature calibrated radiocarbon (cal. r.c.) dates, whose samples argument will consist of thousands of draws from their probability density function. The most expedient way to convey "samples" for cal. r.c. dates is to store the information on the uncalibrated mean and standard deviation, and then to use a package to generate the calibrated dates,

Here, a csv file is used to store information on uncalibrated r.c. dates, which may be found in the inst/extdata folder of the package. This selection of dates comes from Callegarin et al. (2016, 41) and Manning, Lorentzen, and Demesticha (2022). The script below uses Bchron (Haslett and Parnell 2008), looping over the table of uncalibrated dates in order to draw samples from the calibrated date’s p.d.f. and insert them into a list of t.p.q., with an id and associated context (assoc). Note that a constraints object may also be applied to a list of absolute objects, such that additional t.p.q. can be appended after the cal. r.c. dates:

# create an empty list to contain all tpq
tpq_info <- list()

eratosthenes_rcdates <- read.csv('inst/extdata/rc20250628.csv')

library(Bchron)

# calibrate and insert rc dates into tpq by looping over rows
for (i in 1:nrow(eratosthenes_rcdates)) {
    calib <- BchronCalibrate(ages = eratosthenes_rcdates$mu[i],
                             ageSds = eratosthenes_rcdates$sigma[i],
                             calCurves = "intcal20")
    x <- 1950 - sampleAges(calib)

    tpq_info[[i]] <- absolute(id = eratosthenes_rcdates$id[i],
                     assoc = eratosthenes_rcdates$assoc[i],
                     samples = x)
}

tpq_info <- constraints(tpq_info)

With the inputs of these sequences, finds, and absolute constraints, we can estimate the dates of the production, use, and deposition of the Dressel 1B type by calling the gibbs_ad_type() function from eratosthenes. The contexts object containing the sequences is entered first and the finds object second. We then specify what type we want to obtain dates for (here, AMPH Dressel 1B). Finally, the absolute constraints of tpq_info and taq_info are given as inputs:

dr_1b <- gibbs_ad_type(contexts,
                       finds,
                       type = "AMPH Dressel 1B",
                       tpq = tpq_info,
                       taq = taq_info)

The resulting dr_1b object contains samples of dates (production, use, and depositional dates are estimated separately), and the console output will give information on the structure of that object as well as a table listing the mean dates. The densities can be visualized using the histogram() function:

histogram(dr_1b, xlim = c(-300,20), ylim = c(0, 0.010), legend = "topleft") 

Which will show the probable dates of production, use, and deposition separately, indicating which dates are more probable than others.

To determine a highest density region (HDR) of the dates, i.e., the range of the most probable dates according to a given percentage, we can construct a histogram of the dates with 100 bins (i.e., as a percentage) and sort them by their density, choosing, for example, the 10% and 95% regions of the most probable dates of the production of the type.

dat <- dr_1b$type$production
perc <- seq(min(dat), max(dat), length.out = 101)

x <- hist(dat, perc)$mids
y <- hist(dat, perc)$density

hpd <- rev(x[order(y)])
hpd_10 <- c(min(hpd[1:10]), max(hpd[1:10]))
hpd_95 <- c(min(hpd[1:95]), max(hpd[1:95]))

It should be noted that if the resulting distribution is multimodal, this code will need to be modified to identify multiple regions. But here, with a simple unimodal case, the lower and upper bounds or either a narrower (10% HDR) or broader (95% HDR) interval of dates for the production of a Dressel 1B type amphorae are, approximately:

> hpd_10
[1] -103.7998  -70.4462
> hpd_95
[1] -340.980962    7.378864

The dates of production will be earlier than those of deposition, which can be seen in the histogram and by selecting dr_1b$type$deposition rather than dr_1b$type$production.

The estimates naturally depend on the inputs, and this tutorial has used only a small portion of the available information on the contexts and constraints pertaining to the Dressel 1B type. The estimates given by eratosthenes roughly accord with that of the conventional typology, as would be expected, but it gives investigators the benefit of numerical precision afforded by probability theory. Chronological typologies depend on any number of conditional statements about depositional contexts, their similarity to one another, and their sequencing. New information is always being added, and older views are always being reassessed. Hence, eratosthenes allows for a more rapid reassessment of dates, as can be shown next.

Chronological Interventions and Revisions

Revising chronologies, or evaluating the impact of choices upon or interventions within a chronology, is performed directly on the inputs. If we reconsider the view that the Dressel 1B is part of the Isla Pedrosa wreck, we can set residual = FALSE and reassign the id1 object, reassign the finds object, and re-run the gibbs_ad_type() function:

id1 <- finds(id = "id 1", assoc = "Isla Pedrosa", type = "AMPH Dressel 1B", residual = FALSE)
finds <- assemblage(id1, id865, id1202, id1285, id1364)
dr_1b <- gibbs_ad_type(contexts, finds, type = "AMPH Dressel 1B", tpq = tpq_info, taq = taq_info)

Performing the same steps as above to estimate the 10% and 95% HDR of the dates of production, we can see that associating the Dressel 1B amphorae with the cargo of the Isla Pedrosa wreck has substantially changed the allocation of probability for what the most probable dates are, shifting them earlier:

> hpd_10
[1] -137.09992  -99.68446
> hpd_95
[1] -342.884905    8.820347

Having a probabilistically determined date for artifacts that works directly from the basis of their archaeological relationships evades the need to account for chronological discrepancies, and moreover affords the ability to work entirely within a formal, mathematical environment when it comes to topics such as the quantification of finds with uncertain dating (since each find will have its own particular density function). Futher tools to evaluate the influence of events on one another for determining dates within in the chronology are discussed below (see Evaluating Displacement).

Usage

The basic objects in eratosthenes are:

Information on these object classes follow.

Sequences

Each relative sequences should run in order from left (earliest) to right (latest), created as an events object. A sequences object is then created from the events. In the following example, the object contexts is created using sequences(), containing three sequences of events.

x <- events("A", "B", "C", "D", "E", "F", "G", "H", "I", "J")
y <- events("B", "D", "G", "H", "K")
z <- events("F", "K", "L", "M")
contexts <- sequences(x, y, z)

If sequences() returns an error, it will likely be due to two or more events having a conflicting ordering. See the section Evaluating Sequences below.

Finds

Finds are created with the finds() function, which at its core is a list with the following headings:

For example:

f1 <- finds(id = "find01", assoc = "D", type = c("type1", "form1"))
f2 <- finds(id = "find02", assoc = "E", type = c("type1", "form2"))
f3 <- finds(id = "find03", assoc = "G", type = c("type1", "form1"), residual = TRUE)
f4 <- finds(id = "find04", assoc = "H", type = c("type2", "form1"))
f5 <- finds(id = "find05", assoc = "I", type = "type2")
f6 <- finds(id = "find06", assoc = "H", type = NULL)

All finds are then contained within a single assemblage object:

artifacts <- assemblage(f1, f2, f3, f4, f5, f6)

Absolute Constraints

Absolute constraints comprise termini post quos and the other for termini ante quos, which share the same object class. To create an absolute constraint, use the absolute() function:

coin1 <- absolute(id = "coin1", assoc = "B", type = NULL, samples = runif(100, -320, -300))
coin2 <- absolute(id = "coin2", assoc = "G", type = NULL, samples = runif(100, 37, 41))
destr <- absolute(id = "destr", assoc = "J", type = NULL, samples = 79)

The constraints() function then groups together several absolute objects (just as assemblage() does for finds objects). One will typically have just two constraints, one for the t.p.q. and one for the t.a.q.:

tpq_info <- constraints(coin1, coin2)
taq_info <- constraints(destr)

It can be noted that absolute constraints can belong to a type. Any artifact which carries absolute dating information (i.e., extrinsic to the joint conditional density) should be assigned as an absolute constraint, not as a find. It assumed that if a t.p.q has a type, it refers to the artifact’s date of production, and is treated as such (see the section Dates Related to Artifact Types below).

The "samples" argument of an absolute date can take any form:

intcal20 <- read.csv("../path/to/intcal20.14c")

# 14c date mean and st.dev.
mu <- 2040  
sigma <- 30

# samples of 14c dates
uncalib <- round(rnorm(10^5, mu, sigma))

calib <- c()

for (i in 1:length(uncalib)) {
  x <- intcal20$CAL.BP[ intcal20$X14C.age == uncalib[i] ] 
  #g <- intcal20$Sigma[ intcal20$X14C.age == uncalib[i] ]

  if (length(x) > 0) {
    for (j in 1:length(x)) {
      calib <- c(calib, x[j])  
    }
  }
}

# samples of cal BC date
calBC <- 1950 - calib
hist(calBC, breaks = 100)

It is recommended though that one use their preferred calibration software (see the example using Bchron in the Tutorial: Archaeological Example above).

Estimating Dates

The core approach of eratosthenes is a Gibbs sampler, a common Markov Chain Monte Carlo (MCMC) technique used for dating archaeological events, above all radiocarbon dates (Geman and Geman 1984; Buck, Cavanagh, and Litton 1996; Bronk Ramsey 2009). Gibbs sampling however can take a number of different forms, and so it is worthwhile to describe explicitly how it is conducted in eratosthenes. The precise method is as follows:

There are two functions in eratosthenes for estimating dates:

These functions require objects of classes sequences, assemblage, and constraints (on which see above).

See the section Evaluating Displacement below for tools on assessing the effective influence of events upon each other within the joint conditional density.

Dates of Events in Sequences and Absolute Constraints

The function gibbs_ad() takes as inputs the following objects:

For example, to sample from the sequences, finds, and constraints given above, the following inputs are entered into the gibbs_ad() function:

result <- gibbs_ad(contexts, finds = artifacts, tpq = tpq_info, taq = taq_info)

The output is a list object of class marginals containing the following objects:

Information on the marginals object can be accessed with print() and summary(). Density plots and density histograms of one more events can be produced using plot() and histogram() respectively (see packag documentation for details).

Determining the date of the production, use, and deposition of an artifact type uses the same method of Gibbs sampling discussed above, i.e., consistent batch means to determine convergence. Given that types are ideal constructs used to categorize artifacts, the notion of a “type” has flexibility. While only one “type” at a time can be estimated with gibbs_ad_type(), here, a “type” can be defined on the basis of:

That is, one can pool together multiple finds as a type on the basis of their id, even if they were not explicitly given a type as such initially. Similarly, one can pool together more than one type of artifact, e.g., if one is dealing with multiple subtypes and one wants to evaluate them as a single type (e.g., pooling the labels of “Late Greco-Italic amphora”, “MGS V amphora”, “MGS VI amphora” into a single type).

The function works from the principle of the presence/absence of the specified type in a given context. First, it identifies all contexts in the sequences to which it has been assigned (i.e., been deposited). Then, it uses a stipulated rule to identify the earliest moment of production, contingent upon its earliest absence within the joint conditional density (see the argument rule below). Finally, dates of use are sampled between production and deposition.

The gibbs_ad_type() function takes the following inputs, similar to gibbs_ad(), but with some additional fields:

As use dates are drawn between production and depositional dates, if one chooses "earliest" as the rule, then the use density is equivalent to that of the "naive" production density. It should also be noted that, for this function, Gibbs sampling is only used for the depositional sequences and absolute constraints, not for production, use, and deposition (i.e, the use date does not affect the production date, nor is the depositional date affected by the production date).

Using the result object above, the densities of the use dates of the following types is computed using the gibbs_ad_type() function as follows:

# use dates by specifying ids
gibbs_ad_type(contexts, artifacts, id = c("find04", "find05"), tpq = tpq_info, taq = taq_info)
# use dates by specifying types
gibbs_ad_type(contexts, artifacts, type = "type1", tpq = tpq_info, taq = taq_info)

Adjusting the values of max_samples and mcse_crit is recommended to reduce computational time, as needed.

The result is a list object of the class type_marginals, which contains information on the densities of the dates of production, use, and deposition, as well as the MCSE, of the type specified.

Graphics

Base R graphics are provided by eratosthenes to generate traceplots of the results of gibbs_ad() and produce density histograms of the results of gibbs_ad() and gibbs_ad_type(). For gibbs_ad(), histograms may contain up to 12 distinct events. For gibbs_ad_type(), the production, use, and deposition of the stipulated artifact type are shown.

Evaluating Sequences

Managing and evaluating the validity of relative sequences consists of checking multiple partial sequences against one another. Not all relative sequences are of the same informational validity, and not all sequences will contain the same elements. An investigator may seek to constrain one sequence against another, i.e., keeping elements of sequence as close as possible to one another while reordering only some of the elements.

Some functions related to relative sequences:

The package eratosthenes does not have functionality to produce seriations or ordinations, since R packages such as seriation (Hahsler, Hornik, and Buchta 2008), vegan (Oksanen et al. 2024), boral (Hui 2016), ecoCopula (Popovic, Hui, and Warton 2022), VGAM (Yee 2004), and lakhesis (Collins-Elliott 2026) can perform this task already.

Evaluating Displacement

As real-world joint conditional densities will comprise hundreds of events or more, it is easy for an investigator to loose track of which relative/absolute events are determinative or influential upon others, in terms of the estimation of their date. eratosthenes assesses such influence within the conditional structure via the estimation of “displacement.” That is, given the omission of an event \(j\) (either a depositional event or an absolute constraint) from the set of all events, how much does the estimation of the date of another event change?

The squared displacement \(\delta^2(i,j)\) of a target event \(i\) caused by the omission of \(j\) is computed as follows. Let \(\tilde{x}_i\) be the estimated marginalized Monte Carlo mean date using all events within the full joint conditional, and then let \(\tilde{x}_i^{(-j)}\) be the “jackknife” estimated date, when event \(j\) has been omitted from all sequences and absolute constraints. Squared displacement of \(j\) upon \(i\) is then:

\[ \delta^2(i,j) = (\tilde{x}_i^{(-j)} - \tilde{x}_i)^2 \]

If squared displacement is high, then the omission of \(j\) has greatly shifted the date of \(i\). If squared displacement is low, then the omission of \(j\) has not altered the date of \(i\) much. Squared displacement is measured in continuous time, whichever scale the investigator is using (typically years).

Conversely, one can estimate the effective influence of an event \(j\) upon all others by taking the mean squared displacement (MSD). This involves taking the mean of the squared displacements of all other events when \(j\) is omitted. Where \(\Theta\) represents the set of all relative and absolute events, the MSD is defined as

\[ \text{MSD}(j) = \frac{1}{n-1} \sum_{i \in \Theta, i \neq j} \delta^2 (i,j) \]

The squared displacement and MSD are computed in eratosthenes for relative events and absolute constraints after running the gibbs_ad() function, and for an artifact type after running the gibbs_ad_type() function. Note that squared displacement may be computed for any event \(i\) that represents a relative or absolute constraint, as well as a type (the use date is used to compute displacement for finds, as it is affected by both production and deposition) production date, while \(j\) can only be a relative event or absolute constraint (it would make no sense to omit e.g. an artifact production date, since these are conditional upon relative/absolute dates to begin with). Similarly, MSD can only be computed for relative/absolute events.

Objects in the example below are provided from the section Usage above. As these routines are fairly intensive, computational time can be reduced by lowering the values of max_samples and/or raising mcse_crit.

# run gibbs_ad() first
result <- gibbs_ad(contexts, tpq = tpq_info, taq = taq_info)

# squared displacement for depositional context "E" as the target event ("j" above)
sq_disp(result, target = "E", sequences = contexts, 
        max_samples = 20000, mcse_crit = 2, tpq = tpq_info, taq = taq_info)

# mean squared displacement (MSD) is estimated for all relative and absolute dates
msd(result, contexts, finds = artifacts,
    mcse_crit = 1, tpq = tpq_info, taq = taq_info)

# squared displacement for production of artifact type "type1"
# run gibbs_ad_type() first
result_type1 <- gibbs_ad_type(contexts, finds = artifacts, type = "type1",
                              tpq = tpq_info, taq = taq_info)
sq_disp(result_type1, sequences = contexts, finds = artifacts,
        max_samples = 3000, mcse_crit = 2, tpq = tpq_info, taq = taq_info)

Bug Reports, Requests, and Contributions

eratosthenes is licensed under GPL-3.0. If users experience bugs, errors, or problems with the software, or otherwise need guidance or help, please create an issue, describing the nature of problem with the input used that resulted in the error. Alternatively users can contact the package author and maintainer at sce@utk.edu. Users are welcome to suggest new features or improvements; contributions should be discussed with the package author first.

References

Bronk Ramsey, C. 2009. “Bayesian Analysis of Radiocarbon Dates.” Radiocarbon 51: 337–60. https://doi.org/10.1017/s0033822200033865.
Buck, C. E., W. G. Cavanagh, and C. D. Litton. 1996. Bayesian Approach to Interpreting Archaeological Data. Chichester: John Wiley and Sons.
Buck, C. E., J. A. Christen, and G. N. James. 1999. “BCal: An On-Line Bayesian Radiocarbon Calibration Tool.” Internet Archaeology 7. https://doi.org/10.11141/ia.7.1.
Callegarin, L., M. Kbiri Alaoui, A. Ichkhakh, and J.-C. Roux, eds. 2016. Rirha : site antique et médiéval du Maroc II. Période maurétanienne (Ve siècle av. J.-C. - 40 ap. J.-C.). Collection de la Casa de Velázquez 151. Madrid: Casa de Velázquez.
Collins-Elliott, S. A. 2026. “Lakhesis: Consensus Seriation via Iterative Regression of Partial Rankings for Binary Data.” Journal of Applied Statistics, 1–23. https://doi.org/10.1080/02664763.2026.2672564.
Crema, E. R., A. Bevan, and S. Shennan. 2017. “Spatio-Temporal Approaches to Archaeological Radiocarbon Dates.” Journal of Archaeological Science 87: 1–9. https://doi.org/10.1016/j.jas.2017.09.007.
Eddelbuettel, D., and J. J. Balamuta. 2018. “Extending R with C++: A Brief Introduction to Rcpp.” The American Statistician 72: 28–36. https://doi.org/10.1080/00031305.2017.1375990.
Flegal, J. M., M. Haran, and G. L. Jones. 2008. “Markov Chain Monte Carlo: Can We Trust the Third Significant Figure?” Statistical Science 23: 250–60. https://doi.org/10.1214/08-STS257.
Geman, S., and D. Geman. 1984. “Stochastic Relaxation, Gibbs Distributions, and the Bayesian Restoration of Images.” IEEE Transactions on Pattern Analysis and Machine Intelligence 6: 721–41. https://doi.org/10.1016/b978-0-08-051581-6.50057-x.
Hahsler, M., K. Hornik, and C. Buchta. 2008. “Getting Things in Order: An Introduction to the R Package Seriation.” Journal of Statistical Software 25: 1–34. https://doi.org/10.18637/jss.v025.i03.
Haslett, J., and A. C. Parnell. 2008. “A Simple Monotone Process with Application to Radiocarbon-Dated Depth Chronologies.” Journal of the Royal Statistical Society: Series C (Applied Statistics) 57: 399–418. https://doi.org/10.1111/j.1467-9876.2008.00623.x.
Hinz, M., C. Schmid, D. Knitter, and Tietze. 2021. “oxcAAR: Interface to ’OxCal’ Radiocarbon Calibration.” https://doi.org/10.32614/CRAN.package.oxcAAR.
Hui, F. K. C. 2016. “boral: Bayesian Ordination and Regression Analysis of Multivariate Abundance Data in R.” Methods in Ecology and Evolution 7: 744–50. https://doi.org/10.1111/2041-210X.12514.
Jones, G. L., M. Haran, B. S. Caffo, and R. Neath. 2006. “Fixed-Width Output Analysis for Markov Chain Monte Carlo.” Journal of the American Statistical Association 101: 1537–47. https://doi.org/10.1198/016214506000000492.
Lanos, P., and A. Philippe. 2017. “Hierarchical Bayesian Modeling for Combining Dates in Archeological Context.” Journal de La Société Française de Statistique 158: 72–88.
Levy, E., G. Geeraerts, F. Pluquet, E. Piasetzky, and A. Fantalkin. 2021. “Chronological Networks in Archaeology: A Formalised Scheme.” Journal of Archaeological Science 127: 105225. https://doi.org/10.1016/j.jas.2020.105225.
Loughton, M. 2014. The Arverni and Roman Wine. Oxford: Archaeopress.
Manning, S. W., B. Lorentzen, and S. Demesticha. 2022. “Dating Mediterranean Shipwrecks: The Mazotos Ship, Radiocarbon Dating and the Need for Independent Chronological Anchors.” Antiquity 96: 968–80. https://doi.org/10.15184/aqy.2022.76.
Oksanen, J., G. L. Simpson, F. G Blanchet, R. Kindt, P. Legendre, P. R. Minchin, R. B. O’Hara, et al. 2024. “vegan: Community Ecology Package.” https://doi.org/10.32614/CRAN.package.vegan.
Popovic, G. C., F. K. C. Hui, and D. I. Warton. 2022. “Fast Model-Based Ordination with Copulas.” Methods in Ecology and Evolution 13: 194–202. https://doi.org/10.1111/2041-210X.13733.
Reimer, P. J., W. E. N. Austin, E. Bard, A. Bayliss, P. G. Blackwell, C. Bronk Ramsey, M. Butzin, et al. 2020. “The IntCal20 Northern Hemisphere Radiocarbon Age Calibration Curve (0–55 Cal kBP).” Radiocarbon 62: 725–57. https://doi.org/10.1017/RDC.2020.41.
Southampton, University of. 2014. “Roman Amphorae: A Digital Resource [Data-Set].” Internet Archaeology 1. https://doi.org/10.5284/1028192.
Tyers, P. 1996. “Roman Amphoras in Britain.” Internet Archaeology 1. https://doi.org/10.11141/ia.1.6.
Yee, T. W. 2004. “A New Technique for Maximum-Likelihood Canonical Gaussian Ordination.” Ecological Monographs 74: 685–701. https://doi.org/10.1890/03-0078.