# Data included with the tutorial

The three empirical source files used by the tutorial are stored in
[`tutorial/data/`](../data/). After cloning the repository, readers can run the
examples without downloading data from another site. The pages and scripts
read these bundled copies directly. The source notes, citations, and file
checksums are recorded in [`tutorial/data/README.md`](../data/README.md).

## Data sources and acknowledgments

| Example | Bundled file | Source and use in this tutorial |
|---|---|---|
| Arctic charr | `arctic-charr-original.xlsx` | Original workbook for the behavioural measurements analysed by Dellinger et al. (2025), DOI [10.1016/j.anbehav.2025.123077](https://doi.org/10.1016/j.anbehav.2025.123077); source data DOI [10.5061/dryad.xgxd254q2](https://doi.org/10.5061/dryad.xgxd254q2). The tutorial credits the original study and data archive. |
| Red knots | `red-knots-original.csv` | Compiled source data combining the studies of Kok et al. (2019), DOI [10.1086/704593](https://doi.org/10.1086/704593), and Mathot et al. (2020), DOI [10.1242/jeb.231993](https://doi.org/10.1242/jeb.231993). The tutorial cites both studies and identifies the combined file as the analysis input. |
| Dogs | `dogs-modified.csv` | The supplied 100-dog, nine-year Golden Retriever Lifetime Study extract, associated with Swafford et al. (2023), *Behavior Data Commons*, DOI [10.62291/UBOQ4994](https://doi.org/10.62291/UBOQ4994). This copy has randomized opaque dog IDs; source identifiers, exact dates, and the private ID map are not included. |

The Morris Animal Foundation correspondence requested modified data and gave
obfuscated IDs as an example of a modification. The Foundation's required
acknowledgment is:

> We would like to thank Morris Animal Foundation, its staff members and all participants in the Golden Retriever Lifetime Study, including the dog owners, their golden retrievers and the Study veterinarians who made this work possible.

The Foundation's required funding statement is:

> The Golden Retriever Lifetime Study and this manuscript were made possible through financial support provided by the Morris Family Foundation, the Mark & Bette Morris Family Foundation, VCA, the V Foundation, Blue Buffalo Company, Petco Love, Zoetis, Antech Inc., Elanco, the Purina Institute, Orvis, the Golden Retriever Foundation, the Hadley and Marion Stuart Foundation, Mars Veterinary, generous private donors and the Flint Animal Cancer Center at Colorado State University. The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.

The dog citation must follow the exact Data Commons “Cite dataset” record. The
Foundation also requests that a manuscript using these data be sent to it for
review before publication. These requirements apply to publication of the
manuscript and tutorial results; including the modified data file in this
repository does not remove them. The randomized IDs make the extract
pseudonymous, not anonymous, because each dog's complete score trajectory is
unique. Source IDs, exact dates, and the private mapping are excluded.

## Reproduce the examples

Run commands from the repository root. All three input files are bundled in
`tutorial/data/`; readers do not need to fetch data from an external
repository. The dog file contains 900 annual records, 100 randomized dog IDs,
and 14 score columns. The main dog lesson selects ten scores using the
documented zero-frequency rule; a separate extension uses all fourteen.

The source files are provided for this tutorial with their acknowledgments and
citations. Do not replace the bundled versions silently. If you use a different
source release, record its source and checksum, rerun preparation and fitting,
and treat its results as a new analysis.
