These files provide sample R scripts and raw data necessary to calculate flea functional-phylogenetic host specificity and analyse flea infestation probability in wild mammals using phylogenetic glmms. The pdf files contain the code necessary for completing analyses.