Petr Pajdla & Peter Tkáč
AES_707: Statistics seminar for archaeologists
Course website: https://petrpajdla.github.io/stat4arch/
To pass the course:
17. 2. 2022
Today:
(brainstorming)
RStudio is a set of integrated tools designed to help you be more productive with R. It includes a console, syntax-highlighting editor that supports direct code execution, and a variety of robust tools for plotting, viewing history, debugging and managing your workspace.
And much more…
R version 4.1.2 (2021-11-01) -- "Bird Hippie"
Copyright (C) 2021 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
*
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
Natural language support but running in an English locale
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
>
2 + 40
[1] 42
((2022 * 2) - 1 / (40 + 2)^3) / 2
[1] 2022
round(6.48^2)
[1] 42
sqrt(1764)
[1] 42
8 * 10^10
[1] 8e+10
ctrl + enter send line of code from script to console
pi
[1] 3.141593
pi + 1
[1] 4.141593
function-name(args...)round(x = pi)
[1] 3
round(x = pi, digits = Inf)
[1] 3.141593
(Brainstorming)
continuous (spojité / metrické) - môže byť akékoľvek reálne číslo - hmotnosť ker. fragmentu, dĺžka železného meča
interval (intervalové) - numericky vyjadrujú vzdialenosť na vyjadrenie hierarchického vzťahu, nemajú ale zmysluplný nultý bod, umožňujú relatívne porovnávanie ale nie kalkulácie (napr. BC/AD - rozdiel medzi 400AD a 800AD je 400 rokov, 400AD ale nieje 2 krát staršie než 800AD )
ratio (poměrové) - na rozdiel od intervalových premenných umožňujú kalkulácie (napr. vek - objekt starý 1000 rokov je 2krát starší než objekt starý 500; dĺžka meča,…)