# Data
Both raw data and preprocessed are supplied.
# Code
R code uses several packages available on CRAN. Package statutils that contains multiple helper function used in the analysis can be installed using from the GitHub `devtools::install_github("fidadoma/statutils")`
Main analysis is in the file *Manuscript.Rmd*
# Plots
Here are the figures from the manuscript
# How to run
Download the data file *all_data_211015.Rdata* into directory *data* and file *movement_description.xlsx* next to the other code so it would look something like:
- maindir
- - data
- - - all_data_211015.Rdata
- - - exp1
- - - - movement_description.xlsx
- - manuscript.Rmd
- - utils.R
Other two directories contain preprocessing/data generation functions
Then analysis could be run by
```
# setwd("directory/with/maindir
library(knitr)
knit("Manuscript.Rmd")
```
Because some Bayesian models can take some time to compute, we supply precomputed models for faster run. In order to use precomputed models, download directory *tmp* into the maindir