Below are details on the data and code files to replicate the results in "Social phenotype-dependent selection of social environment in wild great and blue tits: an experimental study" #----------------------------------------------------------------------- MANIPULATION SUCCESS DATA #DATA STRUCTURE FILE: data_density.RData COLUMNS: Site: Site identity Date: Date (year-month-day) period: Pre-experimental ('pre') or experimental ('during') treatment: Whether the feeder was allocated to the high density ('high') or low density ('low') treatment logger: Unique feeder identity exp_day: Day from the start of the feeder deployment (first day = 1) N_rec: Number of RFID recordings on a given day N_ids: Number of unique birds recorded on a given day total_rec: Total number of RFID recordings on a given day across both feeders at a site prop: The proportion of 'total_rec' allocated to the high density feeder #-----------------------------------------------------------------------# MANIPULATION SUCCESS ANALYSIS #DATA STRUCTURE FILE: Manipulation_success_analysis.R This script details the analyses aimed at understanding whether the density manipulations had produced different social environments at the low and high density feeders #-----------------------------------------------------------------------# HABITAT CHOICE DATA #DATA STRUCTURE FILE: Social_hab_choice_daily_scale.csv COLUMNS: tag: Individual bird's RFID code ring: Individual bird's BTO ring number species: Bird's species (greti = great tit, bluti = blue tit) experimental.day: Days since the beginning of the density manipulation (1 = first day) on.home.feeder: Whether the bird was recorded on their home feeder (i.e. the feeder they were restricted to, value = 1) or not (value = 0). Feeders are given an NA when there were no recordings for that day on.other.feeder.in.pair: Whether the bird was recorded on the other feeder in the pair (i.e. the feeder they weren't restricted to, value = 1) or not (value = 0). Again, feeders are given an NA when there were no recordings for that day on.feeder.outside.pair: Whether the bird was recorded at another feeder site (value = 1) or not (value = 0) deg.unweighted: Unweighted degree centrality from pre-experimental social networks deg.weighted: Weighted degree centrality from pre-experimental social networks no.obs.pre.exp: The number of times an individual bird was recorded on a feeder in the pre-experimental period density.restriction: The density restriction an individual was allocated to (Low = low density, High = high density) feeder.site: Unique feeder site identification mean.visit.length: The mean length of an individual's visit to their home feeder in seconds mean.interval.length: The mean length of time between an individual's visits to their home feeder in seconds mean.interval.length.1382.cutoff: The mean length of time between an individual's visits to their home feeder in seconds when intervals of >1382 seconds were excluded seen.after.end.feb: Whether a bird was observed as part of the long-term study after the end of February max.day.seen: The number of days through the experiment when the bird was last recorded on a feeder #-----------------------------------------------------------------------# HABITAT CHOICE ANALYSIS #DATA STRUCTURE FILE: Consequences_of_manipulation_analysis.R This script details the analyses aimed at understanding whether birds with different social phenotypes responded differently to the density manipulations in terms of their habitat choice and foraging behaviour.