Data and code from: Social distance and fungal disease in an Australian wild lizard population
Data files
Oct 15, 2026 version files 2.61 MB
-
FullSocialDistanceMin30_Asymptomatic.csv
969.22 KB
-
FullSocialDistanceMin30.csv
792.46 KB
-
README.md
9.48 KB
-
sdistance_asympt_model.R
2.84 KB
-
sdistance_Gamma_censoring_constant_simulation.R
3.12 KB
-
sdistance_main_senss.R
3.35 KB
-
sdistance_sens_counts.R
3.66 KB
-
sdistance_summary_statistics.R
4.89 KB
-
sdistance_supplementary.R
10.77 KB
-
sdistance_table_fig_interactions.R
6.24 KB
-
SenSocialDistanceMin25.csv
804.97 KB
Oct 15, 2026 version files 2.61 MB
-
FullSocialDistanceMin30_Asymptomatic.csv
969.22 KB
-
FullSocialDistanceMin30.csv
792.46 KB
-
README.md
13.46 KB
-
sdistance_asympt_model.R
2.84 KB
-
sdistance_Gamma_censoring_constant_simulation.R
3.12 KB
-
sdistance_main_senss.R
3.35 KB
-
sdistance_sens_counts.R
3.66 KB
-
sdistance_summary_statistics.R
4.89 KB
-
sdistance_supplementary.R
10.77 KB
-
sdistance_table_fig_interactions.R
6.24 KB
-
SenSocialDistanceMin25.csv
804.97 KB
Abstract
This dataset contains observations of social distance and disease status in Eastern Water Dragons (Intellagama lesuerii) collected at Roma Street Parklands, Brisbane, Australia, from 2018 to 2023. The data include repeated observations from individually identified animals and record minimum nearest-neighbour distance alongside sex, disease status, local conspecific counts, estimated seasonal core home-range area, and sampling effort. Three datasets are provided: a primary dataset using a minimum of 30 sightings per individual-season, a sensitivity dataset using a minimum of 25 sightings, and an asymptomatic-inclusive dataset distinguishing healthy, asymptomatic, and symptomatic individuals. The data are suitable for analyses of social spacing, disease-behaviour interactions, and spatial ecology and contain no sensitive or personally identifying information.
Dataset DOI: 10.5061/dryad.8w9ghx42m
Associated paper citation
Requena-García F, Jackson N, Class B, Mitchell A.C., Cramp R.L., and Frere C.H. (in press). Social Distance and Fungal Disease in an Australian Wild Lizard Population. Behavioral Ecology.
Brief abstract
This repository contains data and R code supporting an investigation of social distance in wild Eastern Water Dragons (Intellagama lesueurii) affected by the fungal pathogen Nannizziopsis barbatae. Using observations collected from 2018 to 2023 at Roma Street Parklands in Brisbane, Australia, the study examines how nearest-neighbour distance relates to focal disease status and the number of diseased conspecifics overlapping an individual's seasonal core home range. The repository includes the primary dataset and sensitivity datasets, together with R scripts for Bayesian censored-Gamma models, diagnostic checks, figures, and tables.
Authors and correspondence
Felix Requena-Garcia; Nicola Jackson; Barbara Class; Angela C. Mitchell; Rebecca L. Cramp; Celine H. Frere.
Corresponding author: Felix Requena-García—felix.requena.garcia@gmail.com
Dates and location of data collection
September 2018 to April 2023; Roma Street Parklands, Brisbane, Queensland, Australia
Description of the data and file structure
These datasets contain the variables used in the censored‑Gamma Bayesian models of social distance. Model‑specific variables, including censoring indicators and composite grouping factors for random‑effects, are generated during data preparation and are not stored in the dataset.
Files and variables
File: sdistance_summary_statistics.R
Description: This script generates the study-population summary statistics reported in Table 1 using the primary dataset (FullSocialDistanceMin30.csv). It summarises sample size, sex and disease-status composition, observation effort, representation across field seasons, seasonal core home-range area, social distance by sex, and the distribution of diseased conspecific counts, and exports the resulting table.
File: sdistance_Gamma_censoring_constant_simulation.R
Description: This script evaluates positive constants for observations left-censored at the 1.64 m GPS detection threshold. Using the primary social-distance dataset (minimum 30 sightings), it fits an intercept-only censored Gamma model, simulates censored observations, and compares candidate constants using bias and RMSE. The candidate constant with the lowest RMSE is identified, and the comparison results are exported as Table S1. The primary and sensitivity models use a 1.64 m left-censoring threshold.
File: sdistance_main_senss.R
Description: This script fits censored‑Gamma Bayesian multilevel models to analyse how social distance in Eastern Water Dragons varies with disease status and number of diseased conspecifics. The script prepares the data, constructs model‑specific variables for censoring and grouping, fits a primary model using a minimum of 30 sightings per individual-season, and fits a sensitivity model using a minimum of 25 sightings with the same model structure. It also evaluates model diagnostics and fit and saves the fitted model objects for use in supplementary material analysis.
File: sdistance_table_fig_interactions.R
Description: This script loads the fitted primary social-distance model (m30) and generates the main manuscript model-output table and figures. It extracts reader-friendly Bayesian parameter estimates, posterior standard deviations, 95% credible intervals, and R-hat values, and generates posterior predictions of social distance across the observed range of diseased-conspecific counts, including an inset showing the 0-20 m range. This script requires models/m30.rds, which is created by running sdistance_main_senss.R first.
File: sdistance_sens_counts.R
Description: This script fits censored‑Gamma Bayesian multilevel sensitivity models to evaluate whether the social-distance results are robust to alternative measures of the local social environment. The script prepares the data, constructs model‑specific variables for censoring and grouping, and fits two alternative models using total conspecific count (TotalCount) and healthy conspecific count (HealthyCount), respectively. Both models use the same underlying model structure as the primary analysis, with the local count predictor replaced accordingly. The script also evaluates model diagnostics and fit and saves the fitted model objects for use in the supplementary-material analysis.
File: sdistance_asympt_model.R
Description: This script fits censored‑Gamma Bayesian multilevel sensitivity models that include healthy, asymptomatic, and symptomatic individuals. The script prepares the asymptomatic-inclusive dataset, constructs model-specific variables for censoring and grouping, sets Healthy as the reference diagnostic category, and fits a model examining the interaction between diagnostic status and the local number of diseased conspecifics. The model otherwise follows the same structure as the primary social distance analysis. The script also evaluates model diagnostics and fit and saves the fitted model object for use in the supplementary-material analysis.
File: sdistance_supplementary.R
Description: This script generates the supplementary diagnostics, figures, and model-output tables for the social-distance analysis. It loads the fitted Bayesian model outputs, generates Stan trace plots, posterior predictive checks, PSIS-LOO diagnostics, and exports Bayesian model summaries for the primary, 25-sightings, TotalCount, HealthyCount, and asymptomatic sensitivity models.
File: FullSocialDistanceMin30.csv
Description: Primary dataset containing observations from individuals with a minimum of 30 sightings per individual-season. This dataset is used for the primary analysis and for the TotalCount and HealthyCount sensitivity analysis.
Variables
- Name: Anonymised unique identifier for each Eastern Water Dragon.
- Survey: Unique identifier for each behavioral survey.
- Season: Seasonal classification used to group observations within the study period.
- Sex: Biological sex of the individual (categorical).
- Diseased: Disease status of the individual at the time of observation, coded as No (healthy) or Yes (Diseased).
- Social_dist: Minimum observed distance (meters) between the focal individual and its nearest neighbour during a survey; response variable in the censored‑Gamma model.
- TotalCount: Total number of conspecific individuals overlapping the focal individual’s seasonal core home range. Used as an alternative predictor in the TotalCount sensitivity analysis
- DiseasedCount: Number of diseased conspecifics overlapping the focal individual’s seasonal core home range. This is the local social-environment predictor used in the primary model.
- HealthyCount: Number of healthy conspecific individuals overlapping the focal individual’s seasonal core home range. Used as an alternative predictor in the HealthyCount sensitivity analysis.
- CoreHomeRange: Estimated area (m²) of the focal individual’s seasonal core home range.
- nsight: Number of sightings recorded for the focal individual within the relevant season; included as a measure of sampling effort.
File: FullSocialDistanceMin30_Asymptomatic.csv
Description: Dataset used for the sensitivity analysis incorporating asymptomatic individuals. It contains observations from individuals with a minimum of 30 sightings per individual-season and has the same general structure as FullSocialDistanceMin30.csv, except that the Survey column is omitted and the Diagnostic variable is included.
Variables
- Name: Anonymised unique identifier for each Eastern Water Dragon.
- Season: Seasonal classification used to group observations within the study period.
- Sex: Biological sex of the individual (categorical).
- Diseased: Disease status of the individual at the time of observation, coded as No (healthy) or Yes (Diseased).
- Social_dist: Minimum observed distance (meters) between the focal individual and its nearest neighbour during a survey; response variable in the censored‑Gamma model.
- TotalCount: Total number of conspecific individuals overlapping the focal individual’s seasonal core home range. Used as an alternative predictor in the TotalCount sensitivity analysis
- DiseasedCount: Number of diseased conspecifics overlapping the focal individual’s seasonal core home range. This is the local social-environment predictor used in the primary model.
- HealthyCount: Number of healthy conspecific individuals overlapping the focal individual’s seasonal core home range. Used as an alternative predictor in the HealthyCount sensitivity analysis.
- CoreHomeRange: Estimated area (m²) of the focal individual’s seasonal core home range.
- nsight: Number of sightings recorded for the focal individual within the relevant season; included as a measure of sampling effort.
- Diagnostic: Diagnostic category of the focal individual, classified as Healthy, Asymptomatic, or Symptomatic. Healthy is used as the reference category in the asymptomatic sensitivity model.
File: SenSocialDistanceMin25.csv
Description: Dataset used for the sighting-threshold sensitivity analysis. It contains observations from individuals with a minimum of 25 sightings per individual-season rather than 30. The dataset contains the same model-relevant variables as FullSocialDistanceMin30.csv, except for the Survey column, which is omitted because it is not required for the model fitting. It is used to assess whether the primary model results are robust to the minimum-sighting threshold.
Variables
- Name: Anonymised unique identifier for each Eastern Water Dragon.
- Season: Seasonal classification used to group observations within the study period.
- Sex: Biological sex of the individual (categorical).
- Diseased: Disease status of the individual at the time of observation, coded as No (healthy) or Yes (Diseased).
- Social_dist: Minimum observed distance (meters) between the focal individual and its nearest neighbour during a survey; response variable in the censored‑Gamma model.
- TotalCount: Total number of conspecific individuals overlapping the focal individual’s seasonal core home range. Used as an alternative predictor in the TotalCount sensitivity analysis
- DiseasedCount: Number of diseased conspecifics overlapping the focal individual’s seasonal core home range. This is the local social-environment predictor used in the primary model.
- HealthyCount: Number of healthy conspecific individuals overlapping the focal individual’s seasonal core home range. Used as an alternative predictor in the HealthyCount sensitivity analysis.
- CoreHomeRange: Estimated area (m²) of the focal individual’s seasonal core home range.
- nsight: Number of sightings recorded for the focal individual within the relevant season; included as a measure of sampling effort.
Code/software
R Code/Software
The data files are provided in comma-separated value (CSV) format. They can be viewed using standard spreadsheet software (e.g., Microsoft Excel or LibreOffice Calc) or imported into statistical software such as R or Python.
All data, processing, statistical analysis, and visualisations were conducted in R, an open-source statistical computing environment.
• Software: R version 4.6.1 (2026-06-24 ucrt)
• Primary analysis package: brms (version 2.23.0) for Bayesian multilevel modelling.
- tidyverse: 2.0.0
- dplyr: 1.2.1
- tidyr: 1.3.2
- ggplot2: 4.0.3
- tidybayes: 3.0.7
- posterior: 1.7.0
- loo: 2.10.1
- performance: 0.18.1
- bayesplot: 1.16.0
- openxlsx: 4.2.8.1
- tibble: 3.3.1
- patchwork: 1.3.2
The included R scripts perform data preparation, construct model-specific variables such as censoring indicators and grouping factors, fit the primary and sensitivity censored-Gamma Bayesian mixed-effects models, evaluate model diagnostics, generate model-based predictions and figures, and produce the main and supplementary model-output tables and figures.
Fitted Bayesian model objects are saved as .rds files in the models/ directory and can be loaded by the figure and supplementary-analysis script without refitting the models. Additional .rds objects used to reproduce supplementary outputs are also saved in the models/ directory. Model summaries, diagnostic outputs, posterior predictive checks, and tables are generated by the corresponding analysis scripts.
Execution order: Run sdistance_Gamma_censoring_constant_simulation.R to generate Table S1 and its saved object. Run sdistance_main_senss.R, sdistance_sens_counts.R, and sdistance_asympt_model.R to generate the fitted Bayesian model objects in the models/ directory. Then run sdistance_table_fig_interactions.R and sdistance_supplementary.R to reproduce the main and supplementary model outputs. The sdistance_summary_statistics.R script can be run independently to reproduce Table 1. The scripts generate the required .rds objects during execution; these objects are not included in the initial data deposit.
Changes after Oct 15, 2026: Edited README.md.
