**Jonas Gregorio de Souza**

jonas.gregorio@gmail.com

Tools to perform time-space regressions, an approach often used by archaeologists examining the expansion of cultural phenomena. In essence, one plots the radiocarbon ages of archaeological sites against their distances from a hypothetical origin. If a cultural advance has indeed taken place, the expectation is that radiocarbon dates will be more recent as one moves away from the center of origin. If a significant correlation is found, the intercept of the regression can be used as an estimate of the start date for the dispersal, while the regression slope provides an estimate of the speed of advance. Most applications have been focused on the Neolithic expansion from the Near East to Europe (Ammerman and Cavalli-Sforza 1971; Gkiasta et al. 2003; Pinhasi et al. 2005), but other case studies include the Paleolithic recolonization of Northern Europe (Fort et al. 2004), the Clovis expansion in North America (Hamilton and Buchanan 2007), the human colonization of the Americas from Asia (Hamilton and Buchanan 2010), the Lapita spread in Austronesia (Fort 2003), and the Bantu spread in Africa (Isern and Fort 2019).

To install from CRAN:

`install.packages("spDates")`

To install from the github repository:

`::install_github("jgregoriods/spDates") devtools`

The package includes data sets with radiocarbon dates of Neolithic sites and potential centers of expansion modified from Pinhasi et al. (2005). The radiocarbon dates have already been filtered to retain only the earliest date per site - since including the more recent dates would affect the results of the regression (we are interested in the time of first arrival of the Neolithic). Let us load the data sets and perform a first regression of the dates versus distances from Jericho - a site that is commonly used as a hypothetical center of origin:

```
library(spDates)
data(neof)
data(centers)
<- centers[centers$Site=="Jericho",]
jericho <- modelDates(neof, "C14Age", jericho, method="ols")
model plot(model)
```

Normally, regression is performed on dates versus distances, given the assumption that most of the error will be concentrated on the former (Pinhasi et al. 2005). Nevertheless, distances may also be uncertain, with great-circle distances being only an approximation to the actual path travelled to the site. To account for that, regression on distances versus dates can also be run. In the plot above, the solid line corresponds to the dates-versus-distances regression, while the dashed line shows the distances-versus-dates regression.

To mitigate the uncertainty in radiocarbon dates, the robustness of the regression can be assessed by a bootstrapping procedure (Gkiasta et al. 2003). Here, the modelDates() function executes 999 regressions, each time sampling a single year from the calibrated age ranges. The lines of each regression are shown in the plot, providing an uncertanty envelope (red for dates-versus-distances, blue for distances-versus-dates). The black lines correspond to the average of each bootstrapping.

One can check the estimates for the expansion start date and speed:

```
summary(model)
-versus-distance Distance-versus-time
Time: 9782 +/- 11 cal BP 11115 +/- 21 cal BP
Start date: 0.97 +/- 0.0073 km/yr 0.64 +/- 0.0063 km/yr Speed of advance
```

Another method that has been used in time-space regressions is reduced major axis (RMA), which, unlike OLS, assumes a symmetrical distribution of error between both variables and has been shown to be robust to outliers (Steele 2010; Russell et al. 2014):

```
<- modelDates(neof, "C14Age", jericho, method="rma")
rmamodel plot(rmamodel)
```

So far, we have used all of the sites in the analysis. One can also apply a binning procedure to retain only the earliest site per spatial bins - defined by regular distance intervals from the hypothetical origin (Hamilton and Buchanan 2007; Steele 2010). Let us apply spatial bins of 500 km (RMA is executed by default):

```
<- modelDates(neof, "C14Age", jericho, binWidth=500)
rmabins plot(rmabins)
```

Finally, one can iterate over many sites to test for hypothetical origins, selecting the one with the highest correlation coefficient as the most likely center of origin. Here, we will use 9 sites in the Near East that have been considered as potential Neolithic “cradles” by Pinhasi et al. (2005). We will use spatial bins of 500 km for all cases, but a sequence of widths can also be passed as an argument to test the effect of using different spatial bins:

```
<- iterateSites(neof, "C14Age", centers, "Site", binWidths=500)
iter $results
iter
r p bin n site1: 0.9640 0 500 9 Aswad**
2: 0.9516 0 500 9 Cayönü**
3: 0.9496 0 500 8 Çatal Höyük**
4: 0.9488 0 500 8 Shillourokambos**
5: 0.9469 0 500 9 Jericho**
6: 0.9451 0 500 9 Qermez Dere**
7: 0.9429 0 500 10 Abu Madi**
8: 0.9316 0 500 9 Abu Hureyra**
9: 0.9188 0 500 11 Ali Kosh**
plot(iter$model)
```

One can plot a map with the results of the iteration, showing an interpolated surface with the correlation coefficient of all sites tested as potential origins:

`plot(iter$map)`

When preparing your own data, it is crucial that you include two columns named “cal” and “med”, containing, respectively, calibrated dates in the form of CalDates objects (from the rcarbon package) and the median of each calibrated date (for display in the plots). These can be created in the following way:

```
library(rcarbon)
<- read.csv("myfile.csv")
mydates $cal <- calibrate(mydates$C14Age, mydates$C14SD)
mydates$med <- medCal(mydates$cal) mydates
```

In this example we are reading a csv file but your dataset, of course, can already be stored as a SpatialPointsDataFrame.

Ammerman, A J, and L L Cavalli-Sforza. 1971. “Measuring the Rate of Spread of Early Farming in Europe.” Man 6 (4): 674–88.

Fort, Joaquim. 2003. “Population Expansion in the Western Pacific (Austronesia): A Wave of Advance Model.” Antiquity 77 (297): 520–30.

Fort, Joaquim, Toni Pujol, and Luigi Luca Cavalli-Sforza. 2004. “Palaeolithic Populations and Waves of Advance.” Cambridge Archaeological Journal 14 (1): 53–61.

Gkiasta, Marina, Thembi Russell, Stephen Shennan, and James Steele. 2003. “Neolithic Transition in Europe: The Radiocarbon Record Revisited.” Antiquity 77 (295): 45–62.

Hamilton, Marcus J, and Briggs Buchanan. 2007. “Spatial Gradients in Clovis-Age Radiocarbon Dates across North America Suggest Rapid Colonization from the North.” Proceedings of the National Academy of Sciences 104 (40): 15625–30.

Hamilton, Marcus J, and Briggs Buchanan. 2010. “Archaeological Support for the Three-Stage Expansion of Modern Humans across Northeastern Eurasia and into the Americas.” PLoS One 5 (8): e12472.

Isern, Neus, and Joaquim Fort. 2019. “Assessing the Importance of Cultural Diffusion in the Bantu Spread into Southeastern Africa.” PLOS ONE 14 (5): 1–18.

Pinhasi, Ron, Joaquim Fort, and Albert J Ammerman. 2005. “Tracing the Origin and Spread of Agriculture in Europe.” PLoS Biology 3 (12): e410.

Russell, Thembi, Fabio Silva, and James Steele. 2014. “Modelling the Spread of Farming in the Bantu-Speaking Regions of Africa: An Archaeology-Based Phylogeography.” PLoS One 9 (1): e87854.

Steele, James. 2010. “Radiocarbon Dates as Data: Quantitative Strategies for Estimating Colonization Front Speeds and Event Densities.” Journal of Archaeological Science 37 (8): 2017–30.