R code and data to "Spatio-temporal patterns and risk factors of wild boar-pig farm contact across Europe"

Read full text
Authors: morellek
Cited by: 0

Abstract

This archive contains R scripts and data files necessary to reproduce the main analyses presented in the manuscript 'Spatio-temporal patterns and risk factors of wild boar-pig farm contact across Europe'. ContentsR Scripts Rcode_GeneralPatterns.RPerforms exploratory analyses and visualizations of general contact patterns between wild boar and pig farms. Includes summaries at the individual and farm level, and identifies high-contact individuals/farms. Rcode_Monthly_model.RRuns the Generalized Additive Mixed Model (GAMM) to model monthly contact rates between wild boar and pig farms. This includes temporal smooths by sex and the set of wild boar, environmental and farm-level covariates. Rcode_Hourly_model.RModels the probability of contact at an hourly scale using binomial GAMMs. Data Files contact_data.rdsMonthly-level data linking individual wild boar, farms, and months. Contains metadata including individual ID, farm ID, month, and summary contact statistics. contact_events.rdsData on individual contact events derived from 5-min GPS fixes and simulated trajectories (via ctmm). Each row represents a discrete contact event, with duration, location, and timestamp. monthly_data.rdsInput dataset used for the monthly GAMM. Includes the response variable (contact rate per individual–farm–month) and covariates such as farm area, land cover, wild boar density, distance to farm, etc. hourly_data.rdsInput dataset for the hourly GAMM. Contains hourly contact data.

Fields of Study & Subjects

Wildlife Ecology and Conservation Animal Disease Management and Epidemiology Animal Ecology and Behavior Studies

Publication details

Journal / source
Zenodo (CERN European Organization for Nuclear Research)
Publication date
30 January 2026