Coder Social home page Coder Social logo

tesselle / kairos Goto Github PK

View Code? Open in Web Editor NEW
15.0 2.0 1.0 1.55 MB

:hourglass: Analysis of Chronological Patterns from Archaeological Count Data

Home Page: https://packages.tesselle.org/kairos/

License: GNU General Public License v3.0

R 90.30% TeX 9.70%
r-package archaeology archaeological-science chronology matrix-seriation

kairos's Introduction

tesselle

R-CMD-check codecov CodeFactor Dependencies

r-universe CRAN Version CRAN checks CRAN Downloads

Project Status: Active – The project has reached a stable, usable state and is being actively developed.

DOI

Overview

The tesselle suite is a collection of packages for research and teaching in archaeology. These packages focus on quantitative analysis methods developed for archaeology. The tesselle packages are designed to work seamlessly together and to complement general-purpose and other specialized statistical packages. These packages can be used to explore and analyze common data types in archaeology: count data, compositional data and chronological data.

The tesselle package is designed to make it easy to install and load key packages from the tesselle suite in a single step.

To cite tesselle in publications use:

  Frerebeau N (2024). _tesselle: Easily Install and Load 'tesselle'
  Packages_. Université Bordeaux Montaigne, Pessac, France.
  doi:10.5281/zenodo.6500491 <https://doi.org/10.5281/zenodo.6500491>,
  R package version 1.5.0, <https://packages.tesselle.org/tesselle/>.

This package is a part of the tesselle project
<https://www.tesselle.org>.

Installation

You can install the released version of tesselle from CRAN with:

install.packages("tesselle")

And the development version from GitHub with:

# install.packages("remotes")
remotes::install_github("tesselle/tesselle")

Usage

library(tesselle) will load the core packages:

  • tabula: analysis and visualization of archaeological count data;
  • kairos: analysis of chronological patterns from archaeological count data;
  • nexus: analysis of compositional data;

And two companion packages:

library(tesselle)
#> --- Attaching packages -------------------------------------- tesselle 1.5.0 ---
#> * dimensio    0.6.0
#> * isopleuros  1.2.0
#> * kairos      2.1.0
#> * nexus       0.2.0
#> * tabula      3.0.1

Contributing

Please note that the tesselle project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.

kairos's People

Contributors

nfrerebeau avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

kairos's Issues

temporal blocks vs fixed dates

Hi,
Many thanks for a great package. I have been learning aoristic analysis comparing R packages and have noticed a different implementation of the method. It seems that kairos and aoristAAR is calculating the aoristic sum at fixed dates of temporal blocks.
Whereas, archSeries calculates weights within the temporal blocks. The archSeries output is also consistent with methodology and code by Crema and Palmisano. I hope the example below explain what I mean.

I use as data example from figure 3 from Palmisano et al, 2017

`
library(kairos)

dataOne = data.frame(
id = c("a", "b", "c", "d"),
from = c(-2200, -2000, -1600, -2000),
to = c(-1400, -1600, -1400, -1400)
)

aoristOne = kairos::aoristic(dataOne, step = 200, weight = TRUE)

kairos::get_dates(aoristOne)
[1] -2200 -2000 -1800 -1600 -1400

kairos::get_weights(aoristOne)
[,1] [,2] [,3] [,4] [,5]
[1,] 0.25 0.2500000 0.2500000 0.2500000 0.2500000
[2,] 0.00 0.5000000 0.5000000 0.5000000 0.0000000
[3,] 0.00 0.0000000 0.0000000 1.0000000 1.0000000
[4,] 0.00 0.3333333 0.3333333 0.3333333 0.3333333

[email protected]
[,1]
[1,] 0.250000
[2,] 1.083333
[3,] 1.083333
[4,] 2.083333
[5,] 1.583333

`

`

library(archSeries)

dataTwo = data.frame(
id = c("a", "b", "c", "d"),
Start = c(-2200, -2000, -1600, -2000),
End = c(-1400, -1600, -1400, -1400)
)

aoristTwo = archSeries::aorist(dataTwo, bin.width = 200)
aoristTwo
bin bin.no aorist
1: -2200--2000 1 0.2500000
2: -2000--1800 2 1.0833333
3: -1800--1600 3 1.0833333
4: -1600--1400 4 0.5833333

`

The kairos package returned 5 aoristic sums for each date break but archSeries calculated 4 sums for each temporal bin.

I would appreciate any help with understanding the method implemented in kairos package.
Especially, that the kairos::roc() function returns 4 bins for the same dataset.

Investigate Bellanger L., Coulon A. and Husi P. (2020)

Bellanger L., Coulon A. and Husi P. (2020) PerioClust: a new Hierarchical agglomerative clustering method including temporal or spatial ordering contraints. In Chatzipantelis Th. et al. (ed.), Data Analysis and Rationality in a Complex World, XXIII. Springer International Publishing (Springer Series, Studies in Classification, Data Analysis, and Knowledge Organization) ⟨ISBN:978-3-030-60104-4⟩.

Seriation by constrained correspondence analysis

Poblome, Jeroen, and Patrick J.F. Groenen. 2003. "Constrained Correspondence Analysis for Seriation of Sagalassos Tablewares". In The Digital Heritage of Archaeology, edited by Martin Doerr and Apostolis Sarris. Athens: Hellenic Ministry of Culture.

Velden, Michel van de, Patrick J.F. Groenen, and Jeroen Poblome. 2009. ‘Seriation by Constrained Correspondence Analysis: A Simulation Study’. Computational Statistics & Data Analysis, 53 (8), p. 3129-38. https://doi.org/10.1016/j.csda.2008.08.020.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.