<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD with MathML3 v1.2 20190208//EN"  "JATS-archivearticle1-mathml3.dtd"><article xmlns:ali="http://www.niso.org/schemas/ali/1.0/" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" article-type="research-article" dtd-version="1.2"><front><journal-meta><journal-id journal-id-type="nlm-ta">elife</journal-id><journal-id journal-id-type="publisher-id">eLife</journal-id><journal-title-group><journal-title>eLife</journal-title></journal-title-group><issn publication-format="electronic" pub-type="epub">2050-084X</issn><publisher><publisher-name>eLife Sciences Publications, Ltd</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="publisher-id">73120</article-id><article-id pub-id-type="doi">10.7554/eLife.73120</article-id><article-categories><subj-group subj-group-type="display-channel"><subject>Research Article</subject></subj-group><subj-group subj-group-type="heading"><subject>Epidemiology and Global Health</subject></subj-group></article-categories><title-group><article-title>Linking rattiness, geography and environmental degradation to spillover <italic>Leptospira</italic> infections in marginalised urban settings: An eco-epidemiological community-based cohort study in Brazil</article-title></title-group><contrib-group><contrib contrib-type="author" corresp="yes" id="author-250097"><name><surname>Eyre</surname><given-names>Max T</given-names></name><contrib-id authenticated="true" contrib-id-type="orcid">https://orcid.org/0000-0001-9847-8632</contrib-id><email>maxeyre3@gmail.com</email><xref ref-type="aff" rid="aff1">1</xref><xref ref-type="aff" rid="aff2">2</xref><xref ref-type="fn" rid="pa1">‡</xref><xref ref-type="other" rid="fund6"/><xref ref-type="fn" rid="con1"/><xref ref-type="fn" rid="conf1"/></contrib><contrib contrib-type="author" id="author-251671"><name><surname>Souza</surname><given-names>Fábio N</given-names></name><contrib-id authenticated="true" contrib-id-type="orcid">https://orcid.org/0000-0002-3542-8918</contrib-id><xref ref-type="aff" rid="aff3">3</xref><xref ref-type="other" rid="fund9"/><xref ref-type="fn" rid="con2"/><xref ref-type="fn" rid="conf2"/></contrib><contrib contrib-type="author" id="author-251672"><name><surname>Carvalho-Pereira</surname><given-names>Ticiana SA</given-names></name><contrib-id authenticated="true" contrib-id-type="orcid">https://orcid.org/0000-0003-2370-2198</contrib-id><xref ref-type="aff" rid="aff3">3</xref><xref ref-type="fn" rid="con3"/><xref ref-type="fn" rid="conf2"/></contrib><contrib contrib-type="author" id="author-251673"><name><surname>Nery</surname><given-names>Nivison</given-names></name><xref ref-type="aff" rid="aff3">3</xref><xref ref-type="fn" rid="con4"/><xref ref-type="fn" rid="conf1"/></contrib><contrib contrib-type="author" id="author-251681"><name><surname>de Oliveira</surname><given-names>Daiana</given-names></name><xref ref-type="aff" rid="aff3">3</xref><xref ref-type="fn" rid="con5"/><xref ref-type="fn" rid="conf2"/></contrib><contrib contrib-type="author" id="author-251682"><name><surname>Cruz</surname><given-names>Jaqueline S</given-names></name><xref ref-type="aff" rid="aff3">3</xref><xref ref-type="fn" rid="con6"/><xref ref-type="fn" rid="conf2"/></contrib><contrib contrib-type="author" id="author-251684"><name><surname>Sacramento</surname><given-names>Gielson A</given-names></name><xref ref-type="aff" rid="aff3">3</xref><xref ref-type="fn" rid="con7"/><xref ref-type="fn" rid="conf2"/></contrib><contrib contrib-type="author" id="author-193713"><name><surname>Khalil</surname><given-names>Hussein</given-names></name><xref ref-type="aff" rid="aff3">3</xref><xref ref-type="aff" rid="aff4">4</xref><xref ref-type="fn" rid="con8"/><xref ref-type="fn" rid="conf2"/></contrib><contrib contrib-type="author" id="author-166709"><name><surname>Wunder</surname><given-names>Elsio A</given-names></name><contrib-id authenticated="true" contrib-id-type="orcid">https://orcid.org/0000-0002-5239-8511</contrib-id><xref ref-type="aff" rid="aff5">5</xref><xref ref-type="aff" rid="aff6">6</xref><xref ref-type="fn" rid="con9"/><xref ref-type="fn" rid="conf1"/></contrib><contrib contrib-type="author" id="author-251683"><name><surname>Hacker</surname><given-names>Kathryn P</given-names></name><xref ref-type="aff" rid="aff7">7</xref><xref ref-type="fn" rid="con10"/><xref ref-type="fn" rid="conf2"/></contrib><contrib contrib-type="author" id="author-289637"><name><surname>Hagan</surname><given-names>José E</given-names></name><xref ref-type="aff" rid="aff8">8</xref><xref ref-type="fn" rid="con11"/><xref ref-type="fn" rid="conf2"/></contrib><contrib contrib-type="author" id="author-176393"><name><surname>Childs</surname><given-names>James E</given-names></name><xref ref-type="aff" rid="aff5">5</xref><xref ref-type="aff" rid="aff6">6</xref><xref ref-type="fn" rid="con12"/><xref ref-type="fn" rid="conf2"/></contrib><contrib contrib-type="author" id="author-251688"><name><surname>Reis</surname><given-names>Mitermayer G</given-names></name><xref ref-type="aff" rid="aff3">3</xref><xref ref-type="aff" rid="aff5">5</xref><xref ref-type="fn" rid="con13"/><xref ref-type="fn" rid="conf2"/></contrib><contrib contrib-type="author" id="author-251686"><name><surname>Begon</surname><given-names>Mike</given-names></name><xref ref-type="aff" rid="aff9">9</xref><xref ref-type="fn" rid="con14"/><xref ref-type="fn" rid="conf2"/></contrib><contrib contrib-type="author" id="author-92226"><name><surname>Diggle</surname><given-names>Peter J</given-names></name><xref ref-type="aff" rid="aff1">1</xref><xref ref-type="fn" rid="con15"/><xref ref-type="fn" rid="conf2"/></contrib><contrib contrib-type="author" id="author-121265"><name><surname>Ko</surname><given-names>Albert I</given-names></name><contrib-id authenticated="true" contrib-id-type="orcid">https://orcid.org/0000-0001-9023-2339</contrib-id><xref ref-type="aff" rid="aff5">5</xref><xref ref-type="aff" rid="aff6">6</xref><xref ref-type="other" rid="fund1"/><xref ref-type="other" rid="fund2"/><xref ref-type="other" rid="fund3"/><xref ref-type="other" rid="fund4"/><xref ref-type="other" rid="fund5"/><xref ref-type="fn" rid="con16"/><xref ref-type="fn" rid="conf3"/></contrib><contrib contrib-type="author" equal-contrib="yes" id="author-174104"><name><surname>Giorgi</surname><given-names>Emanuele</given-names></name><contrib-id authenticated="true" contrib-id-type="orcid">https://orcid.org/0000-0003-0640-181X</contrib-id><xref ref-type="aff" rid="aff1">1</xref><xref ref-type="fn" rid="equal-contrib1">†</xref><xref ref-type="fn" rid="con17"/><xref ref-type="fn" rid="conf1"/></contrib><contrib contrib-type="author" equal-contrib="yes" id="author-251687"><name><surname>Costa</surname><given-names>Federico</given-names></name><xref ref-type="aff" rid="aff1">1</xref><xref ref-type="aff" rid="aff3">3</xref><xref ref-type="aff" rid="aff5">5</xref><xref ref-type="aff" rid="aff6">6</xref><xref ref-type="fn" rid="equal-contrib1">†</xref><xref ref-type="other" rid="fund8"/><xref ref-type="other" rid="fund9"/><xref ref-type="other" rid="fund7"/><xref ref-type="fn" rid="con18"/><xref ref-type="fn" rid="conf2"/></contrib><aff id="aff1"><label>1</label><institution-wrap><institution-id institution-id-type="ror">https://ror.org/04f2nsd36</institution-id><institution>Centre for Health Informatics, Computing, and Statistics, Lancaster University Medical School</institution></institution-wrap><addr-line><named-content content-type="city">Lancaster</named-content></addr-line><country>United Kingdom</country></aff><aff id="aff2"><label>2</label><institution-wrap><institution-id institution-id-type="ror">https://ror.org/03svjbs84</institution-id><institution>Liverpool School of Tropical Medicine</institution></institution-wrap><addr-line><named-content content-type="city">Liverpool</named-content></addr-line><country>United Kingdom</country></aff><aff id="aff3"><label>3</label><institution-wrap><institution-id institution-id-type="ror">https://ror.org/03k3p7647</institution-id><institution>Institute of Collective Health, Federal University of Bahia</institution></institution-wrap><addr-line><named-content content-type="city">Salvador</named-content></addr-line><country>Brazil</country></aff><aff id="aff4"><label>4</label><institution-wrap><institution-id institution-id-type="ror">https://ror.org/02yy8x990</institution-id><institution>Swedish University of Agricultural Sciences</institution></institution-wrap><addr-line><named-content content-type="city">Umeå</named-content></addr-line><country>Sweden</country></aff><aff id="aff5"><label>5</label><institution-wrap><institution-id institution-id-type="ror">https://ror.org/04jhswv08</institution-id><institution>Oswaldo Cruz Foundation, Brazilian Ministry of Health</institution></institution-wrap><addr-line><named-content content-type="city">Salvador</named-content></addr-line><country>Brazil</country></aff><aff id="aff6"><label>6</label><institution-wrap><institution-id institution-id-type="ror">https://ror.org/03v76x132</institution-id><institution>Department of Epidemiology of Microbial Diseases, Yale School of Public Health</institution></institution-wrap><addr-line><named-content content-type="city">New Haven</named-content></addr-line><country>United States</country></aff><aff id="aff7"><label>7</label><institution-wrap><institution-id institution-id-type="ror">https://ror.org/00b30xv10</institution-id><institution>University of Pennsylvania</institution></institution-wrap><addr-line><named-content content-type="city">Philadelphia</named-content></addr-line><country>United States</country></aff><aff id="aff8"><label>8</label><institution-wrap><institution-id institution-id-type="ror">https://ror.org/01rz37c55</institution-id><institution>World Health Organization (WHO) Regional Office for Europe</institution></institution-wrap><addr-line><named-content content-type="city">Copenhagen</named-content></addr-line><country>Denmark</country></aff><aff id="aff9"><label>9</label><institution-wrap><institution-id institution-id-type="ror">https://ror.org/04xs57h96</institution-id><institution>Department of Evolution, Ecology and Behaviour, University of Liverpool</institution></institution-wrap><addr-line><named-content content-type="city">Liverpool</named-content></addr-line><country>United Kingdom</country></aff></contrib-group><contrib-group content-type="section"><contrib contrib-type="editor"><name><surname>Hens</surname><given-names>Niel</given-names></name><role>Reviewing Editor</role><aff><institution-wrap><institution-id institution-id-type="ror">https://ror.org/04nbhqj75</institution-id><institution>Hasselt University</institution></institution-wrap><country>Belgium</country></aff></contrib><contrib contrib-type="senior_editor"><name><surname>Davenport</surname><given-names>Miles P</given-names></name><role>Senior Editor</role><aff><institution-wrap><institution-id institution-id-type="ror">https://ror.org/03r8z3t63</institution-id><institution>University of New South Wales</institution></institution-wrap><country>Australia</country></aff></contrib></contrib-group><author-notes><fn fn-type="con" id="equal-contrib1"><label>†</label><p>These authors contributed equally to this work</p></fn><fn fn-type="present-address" id="pa1"><label>‡</label><p>Centre for Health Informatics, Computing and Statistics, Lancaster Medical School, Lancaster University, Lancaster, United States</p></fn></author-notes><pub-date publication-format="electronic" date-type="publication"><day>16</day><month>09</month><year>2022</year></pub-date><pub-date pub-type="collection"><year>2022</year></pub-date><volume>11</volume><elocation-id>e73120</elocation-id><history><date date-type="received" iso-8601-date="2021-08-17"><day>17</day><month>08</month><year>2021</year></date><date date-type="accepted" iso-8601-date="2022-09-14"><day>14</day><month>09</month><year>2022</year></date></history><pub-history><event><event-desc>This manuscript was published as a preprint at .</event-desc><date date-type="preprint" iso-8601-date="2021-09-22"><day>22</day><month>09</month><year>2021</year></date><self-uri content-type="preprint" xlink:href="https://doi.org/10.1101/2021.09.21.21263884"/></event></pub-history><permissions><copyright-statement>© 2022, Eyre et al</copyright-statement><copyright-year>2022</copyright-year><copyright-holder>Eyre et al</copyright-holder><ali:free_to_read/><license xlink:href="http://creativecommons.org/licenses/by/4.0/"><ali:license_ref>http://creativecommons.org/licenses/by/4.0/</ali:license_ref><license-p>This article is distributed under the terms of the <ext-link ext-link-type="uri" xlink:href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution License</ext-link>, which permits unrestricted use and redistribution provided that the original author and source are credited.</license-p></license></permissions><self-uri content-type="pdf" xlink:href="elife-73120-v4.pdf"/><abstract><sec id="abs1"><title>Background:</title><p>Zoonotic spillover from animal reservoirs is responsible for a significant global public health burden, but the processes that promote spillover events are poorly understood in complex urban settings. Endemic transmission of <italic>Leptospira</italic>, the agent of leptospirosis, in marginalised urban communities occurs through human exposure to an environment contaminated by bacteria shed in the urine of the rat reservoir. However, it is unclear to what extent transmission is driven by variation in the distribution of rats or by the dispersal of bacteria in rainwater runoff and overflow from open sewer systems.</p></sec><sec id="abs2"><title>Methods:</title><p>We conducted an eco-epidemiological study in a high-risk community in Salvador, Brazil, by prospectively following a cohort of 1401 residents to ascertain serological evidence for leptospiral infections. A concurrent rat ecology study was used to collect information on the fine-scale spatial distribution of ‘rattiness’, our proxy for rat abundance and exposure of interest. We developed and applied a novel geostatistical framework for joint spatial modelling of multiple indices of disease reservoir abundance and human infection risk.</p></sec><sec id="abs3"><title>Results:</title><p>The estimated infection rate was 51.4 (95%CI 40.4, 64.2) infections per 1000 follow-up events. Infection risk increased with age until 30 years of age and was associated with male gender. Rattiness was positively associated with infection risk for residents across the entire study area, but this effect was stronger in higher elevation areas (OR 3.27 95% CI 1.68, 19.07) than in lower elevation areas (OR 1.14 95% CI 1.05, 1.53).</p></sec><sec id="abs4"><title>Conclusions:</title><p>These findings suggest that, while frequent flooding events may disperse bacteria in regions of low elevation, environmental risk in higher elevation areas is more localised and directly driven by the distribution of local rat populations. The modelling framework developed may have broad applications in delineating complex animal-environment-human interactions during zoonotic spillover and identifying opportunities for public health intervention.</p></sec><sec id="abs5"><title>Funding:</title><p>This work was supported by the Oswaldo Cruz Foundation and Secretariat of Health Surveillance, Brazilian Ministry of Health, the National Institutes of Health of the United States (grant numbers F31 AI114245, R01 AI052473, U01 AI088752, R01 TW009504 and R25 TW009338); the Wellcome Trust (102330/Z/13/Z), and by the Fundação de Amparo à Pesquisa do Estado da Bahia (FAPESB/JCB0020/2016). MTE was supported by a Medical Research UK doctorate studentship. FBS participated in this study under a FAPESB doctorate scholarship.</p></sec></abstract><kwd-group kwd-group-type="author-keywords"><kwd>zoonotic spillover</kwd><kwd>leptospirosis epidemiology;</kwd><kwd>multivariate model-based geostatistics</kwd><kwd>norway rat reservoir</kwd><kwd>rodent-borne zoonoses</kwd><kwd>joint spatial modelling</kwd></kwd-group><kwd-group kwd-group-type="research-organism"><title>Research organism</title><kwd>Human</kwd><kwd>Rat</kwd></kwd-group><funding-group><award-group id="fund1"><funding-source><institution-wrap><institution-id institution-id-type="FundRef">http://dx.doi.org/10.13039/100000002</institution-id><institution>National Institutes of Health</institution></institution-wrap></funding-source><award-id>F31 AI114245</award-id><principal-award-recipient><name><surname>Ko</surname><given-names>Albert I</given-names></name></principal-award-recipient></award-group><award-group id="fund2"><funding-source><institution-wrap><institution-id institution-id-type="FundRef">http://dx.doi.org/10.13039/100000002</institution-id><institution>National Institutes of Health</institution></institution-wrap></funding-source><award-id>R01 AI052473</award-id><principal-award-recipient><name><surname>Ko</surname><given-names>Albert I</given-names></name></principal-award-recipient></award-group><award-group id="fund3"><funding-source><institution-wrap><institution-id institution-id-type="FundRef">http://dx.doi.org/10.13039/100000002</institution-id><institution>National Institutes of Health</institution></institution-wrap></funding-source><award-id>U01 AI088752</award-id><principal-award-recipient><name><surname>Ko</surname><given-names>Albert I</given-names></name></principal-award-recipient></award-group><award-group id="fund4"><funding-source><institution-wrap><institution-id institution-id-type="FundRef">http://dx.doi.org/10.13039/100000002</institution-id><institution>National Institutes of Health</institution></institution-wrap></funding-source><award-id>R01 TW009504</award-id><principal-award-recipient><name><surname>Ko</surname><given-names>Albert I</given-names></name></principal-award-recipient></award-group><award-group id="fund5"><funding-source><institution-wrap><institution-id institution-id-type="FundRef">http://dx.doi.org/10.13039/100000002</institution-id><institution>National Institutes of Health</institution></institution-wrap></funding-source><award-id>R25 TW009338</award-id><principal-award-recipient><name><surname>Ko</surname><given-names>Albert I</given-names></name></principal-award-recipient></award-group><award-group id="fund6"><funding-source><institution-wrap><institution-id institution-id-type="FundRef">http://dx.doi.org/10.13039/501100000265</institution-id><institution>Medical Research Council</institution></institution-wrap></funding-source><award-id>964635</award-id><principal-award-recipient><name><surname>Eyre</surname><given-names>Max T</given-names></name></principal-award-recipient></award-group><award-group id="fund7"><funding-source><institution-wrap><institution-id institution-id-type="FundRef">http://dx.doi.org/10.13039/100004440</institution-id><institution>Wellcome Trust</institution></institution-wrap></funding-source><award-id>102330/Z/13/Z</award-id><principal-award-recipient><name><surname>Nery</surname><given-names>Nivison</given-names></name><name><surname>Costa</surname><given-names>Federico</given-names></name></principal-award-recipient></award-group><award-group id="fund8"><funding-source><institution-wrap><institution-id institution-id-type="FundRef">http://dx.doi.org/10.13039/501100006507</institution-id><institution>Fundação Oswaldo Cruz</institution></institution-wrap></funding-source><principal-award-recipient><name><surname>Costa</surname><given-names>Federico</given-names></name></principal-award-recipient></award-group><award-group id="fund9"><funding-source><institution-wrap><institution-id institution-id-type="FundRef">http://dx.doi.org/10.13039/501100006181</institution-id><institution>Fundação de Amparo à Pesquisa do Estado da Bahia</institution></institution-wrap></funding-source><award-id>FAPESB/JCB0020/2016</award-id><principal-award-recipient><name><surname>Souza</surname><given-names>Fábio N</given-names></name><name><surname>Costa</surname><given-names>Federico</given-names></name></principal-award-recipient></award-group><funding-statement>The funders had no role in study design, data collection and interpretation, or the decision to submit the work for publication. For the purpose of Open Access, the authors have applied a CC BY public copyright license to any Author Accepted Manuscript version arising from this submission.</funding-statement></funding-group><custom-meta-group><custom-meta specific-use="meta-only"><meta-name>Author impact statement</meta-name><meta-value>While flooding events may drive spillover transmission of <italic>Leptospira spp</italic>. through dispersal of the bacteria at low elevations, at higher elevations environmental risk is more localised and directly driven by the distribution of local rat reservoir populations.</meta-value></custom-meta></custom-meta-group></article-meta></front><body><sec id="s1" sec-type="intro"><title>Introduction</title><p>Zoonotic spillover, the transmission of pathogens from infected vertebrate animals to humans, is responsible for a significant public health burden globally. Understanding the processes that promote spillover transmission is essential for improving our ability to predict and prevent spillover events, but for many zoonoses, such as <italic>Leptospira interrogans</italic>, <italic>Escherichia coli</italic> O157 and <italic>Giardia</italic> spp., they are poorly understood (<xref ref-type="bibr" rid="bib57">Plowright et al., 2017</xref>). This is due to the complex nature of the spillover system, in which the probability of transmission is governed by dynamic interactions in space and time between ecological, epidemiological, behavioural, and immunological factors that determine pathogen pressure, exposure and host susceptibility. Zoonotic spillover research must explore interactions between the environment, disease reservoirs and local epidemiology, presenting two central challenges: (i) the need for transdisciplinary studies at the animal-human disease interface (a One Health approach) that accurately collect data on multiple components of the spillover process at common temporal and spatial scales at which these events take place; (ii) the development of integrative approaches to jointly analyse these diverse datasets within a spatially and temporally explicit framework (<xref ref-type="bibr" rid="bib57">Plowright et al., 2017</xref>; <xref ref-type="bibr" rid="bib5">Becker et al., 2019</xref>; <xref ref-type="bibr" rid="bib27">Dhewantara et al., 2019</xref>).</p><p>Leptospirosis, a neglected zoonotic disease caused by pathogenic bacteria from the genus <italic>Leptospira</italic>, is an important example of zoonotic spillover. Globally, it is estimated to cause more than one million cases and over 58,000 deaths each year (<xref ref-type="bibr" rid="bib19">Costa et al., 2015a</xref>), with an annual global burden of 2.9 million disability-adjusted life years (DALYs) (<xref ref-type="bibr" rid="bib65">Torgerson et al., 2015</xref>). This burden falls heavily on marginalised urban populations in low- and middle-income countries who live in areas characterised by high population density, poor quality housing and inadequate provision of healthcare, sanitation, and waste management services. In these settings, leptospiral infection occurs through contact with water or soil contaminated with leptospires shed in the urine of the principal reservoir, the Norway rat (<italic>Rattus norvegicus</italic>; <xref ref-type="bibr" rid="bib7">Bierque et al., 2020</xref>). These areas produce the socio-ecological conditions that allow rodent populations to proliferate and leptospires to persist for long periods in the environment (<xref ref-type="bibr" rid="bib37">Goarant, 2016</xref>). Residents consequently have frequent, intense and largely unavoidable exposure to the contaminated environment, often exacerbated by their geographical vulnerability to flooding events (<xref ref-type="bibr" rid="bib47">Lau et al., 2010</xref>). In response, the World Health Organisation (WHO) has convened the Leptospirosis Burden Epidemiology Reference Group (LERG) which has recommended ‘Targeted intervention based on the improved knowledge of disease ecology’ (<xref ref-type="bibr" rid="bib66">WHO, 2010</xref>), highlighting the current knowledge gap for <italic>Leptospira</italic> transmission mechanisms and target points for effective intervention.</p><p>Multiple studies have helped to elucidate key aspects of the <italic>Leptospira</italic> transmission cycle in urban settings, identifying socioeconomic vulnerability, household environment and behavioural exposures as important determinants of infection risk (<xref ref-type="bibr" rid="bib60">Reis et al., 2008</xref>; <xref ref-type="bibr" rid="bib33">Felzemburgh et al., 2014</xref>; <xref ref-type="bibr" rid="bib40">Hagan et al., 2016</xref>; <xref ref-type="bibr" rid="bib45">Khalil et al., 2021</xref>; <xref ref-type="bibr" rid="bib1">Barcellos and Sabroza, 2000</xref>; <xref ref-type="bibr" rid="bib2">Barcellos and Sabroza, 2001</xref>; <xref ref-type="bibr" rid="bib52">Mwachui et al., 2015</xref>; <xref ref-type="bibr" rid="bib44">Keenan et al., 2010</xref>; <xref ref-type="bibr" rid="bib37">Goarant, 2016</xref>; <xref ref-type="bibr" rid="bib58">Prabhakaran et al., 2014</xref>; <xref ref-type="bibr" rid="bib11">Briskin et al., 2019</xref>). However, these variables have been unable to explain fine-scale spatial variation in risk (<xref ref-type="bibr" rid="bib60">Reis et al., 2008</xref>; <xref ref-type="bibr" rid="bib40">Hagan et al., 2016</xref>). This is likely to be driven by the high spatial and temporal heterogeneity in environmental risk, observed in recent studies of <italic>Leptospira</italic> in soil, and surface and sewage waters (<xref ref-type="bibr" rid="bib62">Schneider et al., 2018</xref>; <xref ref-type="bibr" rid="bib13">Casanovas-Massana et al., 2018</xref>; <xref ref-type="bibr" rid="bib7">Bierque et al., 2020</xref>). These findings lead to two key questions: (i) to what extent does environmental contamination by localised rat shedding drive infection risk, rather than exposure to leptospires that have been dispersed by rainwater runoff and overflowing sewer systems; and (ii) how does this change across the geography of a community, for example at different elevation levels?</p><p>Establishing a dynamic link between rats, the environment and <italic>Leptospira</italic> transmission is complicated by the difficulty of measuring and modelling the rat contamination process. However, urban Norway rats have been found to have high <italic>Leptospira</italic> prevalence and shedding rates worldwide (<xref ref-type="bibr" rid="bib56">Pellizzaro et al., 2019</xref>; <xref ref-type="bibr" rid="bib17">Costa et al., 2014a</xref>; <xref ref-type="bibr" rid="bib8">Boey et al., 2019</xref>; <xref ref-type="bibr" rid="bib70">Yusof et al., 2019</xref>; <xref ref-type="bibr" rid="bib46">Krøjgaard et al., 2009</xref>; <xref ref-type="bibr" rid="bib20">Costa et al., 2015b</xref>; <xref ref-type="bibr" rid="bib25">de Faria et al., 2008</xref>). This suggests that rat abundance may be predictive of environmental risk, and could be used as a proxy for this shedding process. While several studies have identified associations between infection risk and household rat sightings and infestation (<xref ref-type="bibr" rid="bib60">Reis et al., 2008</xref>; <xref ref-type="bibr" rid="bib18">Costa et al., 2014b</xref>; <xref ref-type="bibr" rid="bib40">Hagan et al., 2016</xref>; <xref ref-type="bibr" rid="bib21">Costa et al., 2021</xref>; <xref ref-type="bibr" rid="bib56">Pellizzaro et al., 2019</xref>; <xref ref-type="bibr" rid="bib6">Bhardwaj et al., 2008</xref>), their ability to explore fine-scale spatial variation in risk was limited by a reliance on household infestation surveys or aggregation of incidence and abundance indices to a common coarse spatial scale. All modelled abundance as a regression covariate, thereby not accounting for uncertainty in its measurement. The absence of methods applied to formally integrate abundance and spillover infection data is an issue for rodent-borne zoonoses more widely (<xref ref-type="bibr" rid="bib9">Bordes et al., 2015</xref>; <xref ref-type="bibr" rid="bib27">Dhewantara et al., 2019</xref>).</p><p>There is no gold-standard index of abundance and field teams use a range of imperfect indices, such as traps, infestation surveys and track plates. In our previous work, we developed a multivariate generalized linear geostatistical model for joint spatial modelling of multiple imperfect abundance indices (<xref ref-type="bibr" rid="bib30">Eyre et al., 2020</xref>). We use the term ‘abundance’ here to denote all ecological processes that are associated with animal abundance and measured by abundance indices, for example animal presence, density and activity, and that may be useful to quantify exposure to a zoonotic disease of interest. This methodology was then used to model the spatial distribution of ‘rattiness’, our proxy for rat abundance, at a fine scale within a community in Salvador, Brazil (<xref ref-type="bibr" rid="bib30">Eyre et al., 2020</xref>). The spatial distribution of rattiness was highly heterogeneous, suggesting that it could be a driver of micro-heterogeneity in infection risk.</p><p>To analyse reservoir host abundance (as defined previously) and infection data at fine spatial scales, we propose that a framework should (i) account for spatial correlation in human and reservoir host data; (ii) jointly model multiple imperfect indices of abundance while accounting for the appropriate sampling distribution of each index; (iii) account for uncertainty in abundance indices, (iv) allow for the prediction of abundance and infection risk at all locations within the study area, and (v) quantify the uncertainty associated with those predictions. Several studies have attempted to model spatial associations between disease reservoir or vector abundance and human infection for leptospirosis (<xref ref-type="bibr" rid="bib43">Hurd et al., 2017</xref>; <xref ref-type="bibr" rid="bib48">Lau et al., 2016</xref>; <xref ref-type="bibr" rid="bib50">Mayfield et al., 2018</xref>), tularemia (<xref ref-type="bibr" rid="bib61">Rotejanaprasert et al., 2018</xref>) Lyme disease (<xref ref-type="bibr" rid="bib53">Nicholson and Mather, 1996</xref>) West Nile Virus (<xref ref-type="bibr" rid="bib68">Winters et al., 2008</xref>) dengue fever (<xref ref-type="bibr" rid="bib22">Cromwell et al., 2017</xref>) and Lassa fever (<xref ref-type="bibr" rid="bib35">Fichet-Calvet et al., 2007</xref>). However, none of the approaches used satisfy all five of the above conditions. The development of new tools for the joint spatial analysis of abundance and human infection may consequently be beneficial for the study of other zoonoses and vector-borne diseases (<xref ref-type="bibr" rid="bib29">Eisen and Eisen, 2008</xref>).</p><p>The aim of this study was to develop a flexible modelling framework for zoonotic spillover to explore whether rattiness, acting as a proxy for local leptospiral contamination by Norway rats, can explain spatial heterogeneity in leptospiral transmission in a high-risk urban community in Brazil where 80% of rats are estimated to be actively shedding the bacteria (<xref ref-type="bibr" rid="bib20">Costa et al., 2015b</xref>; <xref ref-type="bibr" rid="bib25">de Faria et al., 2008</xref>). We extend the rattiness framework of <xref ref-type="bibr" rid="bib30">Eyre et al., 2020</xref> to include human infection risk. We describe findings from a transdisciplinary eco-epidemiological study which comprises a prospective community-based cohort study with two serosurveys and a fine-scale rat ecology study. The ecology study was used to collect information on the spatial distribution of rat abundance, our exposure of interest, in the period between the two surveys using multiple abundance indices. Then, we explore associations between infection risk, rattiness and a range of measured environmental and individual risk factors.</p></sec><sec id="s2" sec-type="materials|methods"><title>Materials and methods</title><sec id="s2-1"><title>Study design</title><sec id="s2-1-1"><title>Study area</title><p>The study was conducted in Pau da Lima community (13°32’53.47” S; 38°43’51.10” W), a marginalised informal settlement located in the city of Salvador, Northeast Brazil. The study site has an area of <inline-formula><mml:math id="inf1"><mml:mrow><mml:mn>0.25</mml:mn><mml:mo>⁢</mml:mo><mml:mi>k</mml:mi><mml:mo>⁢</mml:mo><mml:msup><mml:mi>m</mml:mi><mml:mn>2</mml:mn></mml:msup></mml:mrow></mml:math></inline-formula> and is characterised by three connected valleys with large elevation gradients, high population density and a heterogeneous environment of vegetation, paved surfaces and exposed soil (<xref ref-type="fig" rid="fig1">Figure 1</xref>). There are significant gradients in socioeconomic status and infrastructure quality over small elevation increases - with the most marginalised members of the community living at lower elevations. The community suffers from low quality housing, poor provision of waste management services and inadequate drainage and sanitation systems (<xref ref-type="bibr" rid="bib40">Hagan et al., 2016</xref>; <xref ref-type="bibr" rid="bib39">Hacker et al., 2020</xref>). Residents are consequently often unable to avoid intense exposure with mud and floodwater. These factors result in abundant rat populations (<xref ref-type="bibr" rid="bib30">Eyre et al., 2020</xref>) and a high estimated annual <italic>Leptospira</italic> infection rate of 35.4 (95% CI, 30.7, 40.6) infections per 1000 annual follow-up events (<xref ref-type="bibr" rid="bib40">Hagan et al., 2016</xref>). For this reason, Pau da Lima has become an exemplar for investigating urban <italic>Leptospira</italic> transmission in Brazil over the last 15 years.</p><fig id="fig1" position="float"><label>Figure 1.</label><caption><title>Study site and timeline.</title><p>(<bold>A</bold>) Map of the three valleys within the study site in Pau da Lima, with household locations for the serosurveys marked as orange circles. Locations sampled in the the rat ecology study are shown for each of the rat abundance indices as follows: Plates &amp; Signs (track plates, burrows, faeces and trails), Traps &amp; Signs (traps, burrows, faeces and trails) and Signs only (burrows, faeces, and trails); (<bold>B</bold>) Land cover classification map (impervious cover is defined as man-made structures e.g. pavement and buildings); (<bold>C</bold>) Study timeline for the two community serosurveys and rat ecology study.</p></caption><graphic mimetype="image" mime-subtype="tiff" xlink:href="elife-73120-fig1-v4.tif"/></fig></sec><sec id="s2-1-2"><title>Serosurveys</title><p>We conducted a prospective community cohort study with two serosurveys carried out in August-October 2014 and January-April 2015. After an initial census of the study site, all ground floor households were visited and inhabitants who met the eligibility criteria of ≥5 years of age who had slept ≥3 nights in the previous week in a study household were invited to join the study. This study focussed on ground floor households because they are vulnerable to flooding and consequently at high risk for leptospiral transmission. The criterion for determining whether a resident is currently living at a household location is commonly applied in this context to account for resident mobility.</p><p>During each survey trained phlebotomists collected blood samples from participants and administered a modified version of the standardised questionnaire used previously (<xref ref-type="bibr" rid="bib18">Costa et al., 2014b</xref>; <xref ref-type="bibr" rid="bib40">Hagan et al., 2016</xref>). Information was collected on demographic and socioeconomic indicators, household environmental characteristics and exposures to potential sources of environmental contamination in the previous six months (the average time between the two serosurveys). Study data were collected and managed using REDCap electronic data capture tools (<xref ref-type="bibr" rid="bib41">Harris et al., 2009</xref>) and all individual data were anonymised. The locations of sampled households are shown in <xref ref-type="fig" rid="fig1">Figure 1</xref> - panel A. If an individual was not found during a sample collection visit their house was revisited at least five times on different days of the week.</p><p>The microscopic agglutination test (MAT) was used to determine titers of agglutinating antibodies against pathogenic <italic>Leptospira</italic> in sera obtained from the blood samples collected in each serosurvey. Serological samples were reacted with a panel of two <italic>Leptospira</italic> reference strains that are dominant in Pau da Lima: <italic>Leptospira interrogans</italic> serovars Copenhageni (COPL1) and Cynopteri 3522 C (C3522C). These two strains have been shown to have the same performance in identifying MAT seroconversion in our prospective studies as the WHO recommended battery of 19 reference serovars. When agglutination was observed at a dilution of 1:50, the sample was titrated in serial twofold dilutions to determine the highest agglutination titer. The study outcome of leptospiral infection was defined as seroconversion, an MAT titer increase from negative to ≥1:50, or a fourfold increase in titer for either serovar between paired samples from cohort subjects. All laboratory analyses were performed in the Laboratory Pathology and Molecular Biology at Fiocruz, Salvador. As part of quality control procedures two independent evaluations were conducted by Yale University for all infected subjects and 8% of all samples, with high concordance between results.</p></sec><sec id="s2-1-3"><title>Rat ecology study</title><p>To estimate exposure risk due to local rat contamination between the two serosurveys, a cross-sectional rat ecology study was conducted from October to December 2014. As has been described previously (<xref ref-type="bibr" rid="bib30">Eyre et al., 2020</xref>), the aim of this study was to collect data on the fine-scale spatial variation in rat reservoir population abundance. Data were collected for five indices of rat abundance: live trapping, track plates, number of active burrows present, presence of faecal droppings and presence of trails. Rat trapping was carried out at 189 locations, randomly distributed across the study area (see <xref ref-type="bibr" rid="bib55">Panti-May et al., 2016</xref>). Two traps were deployed for 4 consecutive 24 hr trapping periods at each location. Trapping success and trap closure without a rat, a common malfunction, were recorded after each 24 hr period. Track plates were placed at 415 locations for two consecutive 24 hr periods following the standardised protocol for placement and survey developed and validated previously (<xref ref-type="bibr" rid="bib38">Hacker et al., 2016</xref>), with five plates placed at each location in the shape of a ‘five’ on a die. After each 24 hr period, plates were repainted and any lost plates were recorded and replaced. On the first day of trapping or plate placement, a survey for signs of rat infestation, adapted from the <xref ref-type="bibr" rid="bib15">Centers for Disease Control and Prevention, 2006</xref> and validated in the study area (<xref ref-type="bibr" rid="bib18">Costa et al., 2014b</xref>), was conducted within an area of 10 m radius around each trapping or plate location to record the number of active burrows and the presence of faecal droppings and trails. In total, 595 independent locations were sampled for traps, track plates and the three survey indices for signs of rat infestation. The spatial distribution of these locations is shown in <xref ref-type="fig" rid="fig1">Figure 1</xref> - panel A. At 21 locations, theft and local gang violence meant that data for track plates and traps was not collected and only the three survey indices for signs of rat infestation were used.</p></sec><sec id="s2-1-4"><title>Environmental data</title><p>In addition to the environmental survey conducted at each household location, we also collected information for three spatially continuous environmental variables: elevation relative to the bottom of each valley, distance to large public refuse piles and the proportion of land cover classified as impervious (man-made structures) within a 30 m radius. The land cover variable was created from Digital Globe’s WorldView-2 satellite imagery (8 bands) taken on February 17, 2013 which was classified using a maximum likelihood supervised algorithm and validated with ground truthed data collected from 20 randomly selected sites of size 5 m by 5 m. The classification map is shown in <xref ref-type="fig" rid="fig1">Figure 1</xref> - panel B.</p></sec><sec id="s2-1-5"><title>Ethics</title><p>Participants were enrolled according to written informed consent procedures approved by the Institutional Review Boards of the Oswaldo Cruz Foundation and Brazilian National Commission for Ethics in Research, Brazilian Ministry of Health (CAAE: 01877912.8.0000.0040) and Yale University School of Public Health (HIC 1006006956).</p><p>For the rat ecology study, the ethics committee for the use of animals from the Oswaldo Cruz Foundation, Salvador, Brazil, approved the protocols used (protocol number 003/2012), which adhered to the guidelines of the American Society of Mammalogists for the use of wild mammals in research (<xref ref-type="bibr" rid="bib63">Sikes and Gannon, 2011</xref>) and the guidelines of the American Veterinary Medical Association for the euthanasia of animals (<xref ref-type="bibr" rid="bib49">Leary et al., 2013</xref>). These protocols were also approved by the Yale University’s Institutional Animal Care and Use Committee (IACUC), New Haven, Connecticut (protocol number 2012–11498).</p></sec></sec><sec id="s2-2"><title>Joint modelling rat abundance and human infection: the rattiness-infection framework</title><p>The developed geostatistical modelling framework jointly models multiple rat abundance indices as measurements of a common latent process, called rattiness. Rattiness at each household location contributes to the risk of infection for all inhabitants, in addition to other measured individual or household-level explanatory variables.</p><p>We model the rat abundance data following a similar structure to that previously outlined (<xref ref-type="bibr" rid="bib30">Eyre et al., 2020</xref>). Let <inline-formula><mml:math id="inf2"><mml:mrow><mml:mi>R</mml:mi><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mi>x</mml:mi><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:math></inline-formula> denote a spatially continuous stochastic process, representing rattiness. The rat data then consist of a set of outcomes <inline-formula><mml:math id="inf3"><mml:mrow><mml:msub><mml:mi>Y</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>Y</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>k</mml:mi></mml:mrow></mml:msub><mml:mo>:</mml:mo><mml:mi>k</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn><mml:mo>,</mml:mo><mml:mi mathvariant="normal">…</mml:mi><mml:mo>,</mml:mo><mml:mn>5</mml:mn><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:math></inline-formula>, for <inline-formula><mml:math id="inf4"><mml:mrow><mml:mi>i</mml:mi><mml:mo>=</mml:mo><mml:mrow><mml:mn>1</mml:mn><mml:mo>,</mml:mo><mml:mi mathvariant="normal">…</mml:mi><mml:mo>,</mml:mo><mml:msub><mml:mi>N</mml:mi><mml:mi>r</mml:mi></mml:msub></mml:mrow></mml:mrow></mml:math></inline-formula>, collected at a discrete set of locations <inline-formula><mml:math id="inf5"><mml:mrow><mml:mi>X</mml:mi><mml:mo>=</mml:mo><mml:mrow><mml:mo stretchy="false">{</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo>:</mml:mo><mml:mrow><mml:mi>i</mml:mi><mml:mo>=</mml:mo><mml:mrow><mml:mn>1</mml:mn><mml:mo>,</mml:mo><mml:mi mathvariant="normal">…</mml:mi><mml:mo>,</mml:mo><mml:msub><mml:mi>N</mml:mi><mml:mi>r</mml:mi></mml:msub></mml:mrow></mml:mrow><mml:mo stretchy="false">}</mml:mo></mml:mrow></mml:mrow></mml:math></inline-formula>. The outcome variables <inline-formula><mml:math id="inf6"><mml:mrow><mml:msub><mml:mi>Y</mml:mi><mml:mi>k</mml:mi></mml:msub><mml:mo>:</mml:mo><mml:mrow><mml:mi>k</mml:mi><mml:mo>=</mml:mo><mml:mrow><mml:mn>1</mml:mn><mml:mo>,</mml:mo><mml:mi mathvariant="normal">…</mml:mi><mml:mo>,</mml:mo><mml:mn>5</mml:mn></mml:mrow></mml:mrow></mml:mrow></mml:math></inline-formula> are the set of five rat abundance indices that provide information about <inline-formula><mml:math id="inf7"><mml:mrow><mml:mi>R</mml:mi><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mi>x</mml:mi><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:math></inline-formula>: traps (<inline-formula><mml:math id="inf8"><mml:mrow><mml:mi>k</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:math></inline-formula>), track plates (<inline-formula><mml:math id="inf9"><mml:mrow><mml:mi>k</mml:mi><mml:mo>=</mml:mo><mml:mn>2</mml:mn></mml:mrow></mml:math></inline-formula>), number of burrows (<inline-formula><mml:math id="inf10"><mml:mrow><mml:mi>k</mml:mi><mml:mo>=</mml:mo><mml:mn>3</mml:mn></mml:mrow></mml:math></inline-formula>), presence of faecal droppings (<inline-formula><mml:math id="inf11"><mml:mrow><mml:mi>k</mml:mi><mml:mo>=</mml:mo><mml:mn>4</mml:mn></mml:mrow></mml:math></inline-formula>) and presence of trails (<inline-formula><mml:math id="inf12"><mml:mrow><mml:mi>k</mml:mi><mml:mo>=</mml:mo><mml:mn>5</mml:mn></mml:mrow></mml:math></inline-formula>).</p><p>Human data are collected from <inline-formula><mml:math id="inf13"><mml:msub><mml:mi>N</mml:mi><mml:mi>h</mml:mi></mml:msub></mml:math></inline-formula> households and consist of an infection outcome <inline-formula><mml:math id="inf14"><mml:msub><mml:mi>Z</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> for individual <inline-formula><mml:math id="inf15"><mml:mi>j</mml:mi></mml:math></inline-formula> at household location <inline-formula><mml:math id="inf16"><mml:mi>i</mml:mi></mml:math></inline-formula>, for <inline-formula><mml:math id="inf17"><mml:mrow><mml:mi>i</mml:mi><mml:mo>=</mml:mo><mml:mrow><mml:mrow><mml:msub><mml:mi>N</mml:mi><mml:mi>r</mml:mi></mml:msub><mml:mo>+</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mo>,</mml:mo><mml:mi mathvariant="normal">…</mml:mi><mml:mo>,</mml:mo><mml:mrow><mml:msub><mml:mi>N</mml:mi><mml:mi>r</mml:mi></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mi>N</mml:mi><mml:mi>h</mml:mi></mml:msub></mml:mrow></mml:mrow></mml:mrow></mml:math></inline-formula>, collected at a discrete set of locations <inline-formula><mml:math id="inf18"><mml:mrow><mml:mi>X</mml:mi><mml:mo>=</mml:mo><mml:mrow><mml:mo stretchy="false">{</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo>:</mml:mo><mml:mrow><mml:mi>i</mml:mi><mml:mo>=</mml:mo><mml:mrow><mml:mrow><mml:msub><mml:mi>N</mml:mi><mml:mi>r</mml:mi></mml:msub><mml:mo>+</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mo>,</mml:mo><mml:mi mathvariant="normal">…</mml:mi><mml:mo>,</mml:mo><mml:mrow><mml:msub><mml:mi>N</mml:mi><mml:mi>r</mml:mi></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mi>N</mml:mi><mml:mi>h</mml:mi></mml:msub></mml:mrow></mml:mrow></mml:mrow><mml:mo stretchy="false">}</mml:mo></mml:mrow></mml:mrow></mml:math></inline-formula>.</p><p>Let ‘[·]’ be a shorthand notation for ‘the probability distribution of .’ We write <inline-formula><mml:math id="inf19"><mml:mrow><mml:mi>Y</mml:mi><mml:mo>=</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>Y</mml:mi><mml:mn>1</mml:mn></mml:msub><mml:mo>,</mml:mo><mml:mi mathvariant="normal">…</mml:mi><mml:mo>,</mml:mo><mml:msub><mml:mi>Y</mml:mi><mml:msub><mml:mi>N</mml:mi><mml:mi>r</mml:mi></mml:msub></mml:msub><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="inf20"><mml:mrow><mml:mi>Z</mml:mi><mml:mo>=</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>Z</mml:mi><mml:mrow><mml:msub><mml:mi>N</mml:mi><mml:mi>r</mml:mi></mml:msub><mml:mo>+</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:mi mathvariant="normal">…</mml:mi><mml:mo>,</mml:mo><mml:msub><mml:mi>Z</mml:mi><mml:mrow><mml:msub><mml:mi>N</mml:mi><mml:mi>r</mml:mi></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mi>N</mml:mi><mml:mi>h</mml:mi></mml:msub></mml:mrow></mml:msub><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="inf21"><mml:mrow><mml:mi>R</mml:mi><mml:mo>=</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>R</mml:mi><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mn>1</mml:mn></mml:msub><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow><mml:mo>,</mml:mo><mml:mi mathvariant="normal">…</mml:mi><mml:mo>,</mml:mo><mml:mrow><mml:mi>R</mml:mi><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mrow><mml:msub><mml:mi>N</mml:mi><mml:mi>r</mml:mi></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mi>N</mml:mi><mml:mi>h</mml:mi></mml:msub></mml:mrow></mml:msub><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:math></inline-formula>. We assume that the <inline-formula><mml:math id="inf22"><mml:mrow><mml:msub><mml:mi>Y</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>k</mml:mi></mml:mrow></mml:msub><mml:mo>:</mml:mo><mml:mrow><mml:mi>k</mml:mi><mml:mo>=</mml:mo><mml:mrow><mml:mn>1</mml:mn><mml:mo>,</mml:mo><mml:mi mathvariant="normal">…</mml:mi><mml:mo>,</mml:mo><mml:mn>5</mml:mn></mml:mrow></mml:mrow></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="inf23"><mml:msub><mml:mi>Z</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> are conditionally independent given <inline-formula><mml:math id="inf24"><mml:mrow><mml:mi>R</mml:mi><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:math></inline-formula>, from which it follows that<disp-formula id="equ1"><label>(1)</label><mml:math id="m1"><mml:mrow><mml:mrow><mml:mrow><mml:mo stretchy="false">[</mml:mo><mml:mi>Y</mml:mi><mml:mo>,</mml:mo><mml:mrow><mml:mi>Z</mml:mi><mml:mo lspace="2.5pt" rspace="2.5pt" stretchy="false">|</mml:mo><mml:mi>R</mml:mi></mml:mrow><mml:mo stretchy="false">]</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:mrow><mml:munderover><mml:mo largeop="true" movablelimits="false" symmetric="true">∏</mml:mo><mml:mrow><mml:mi>i</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:msub><mml:mi>N</mml:mi><mml:mi>r</mml:mi></mml:msub></mml:munderover><mml:mrow><mml:munderover><mml:mo largeop="true" movablelimits="false" symmetric="true">∏</mml:mo><mml:mrow><mml:mi>k</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mn>5</mml:mn></mml:munderover><mml:mrow><mml:mrow><mml:mo stretchy="false">[</mml:mo><mml:mrow><mml:msub><mml:mi>Y</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>k</mml:mi></mml:mrow></mml:msub><mml:mo lspace="2.5pt" rspace="2.5pt" stretchy="false">|</mml:mo><mml:mrow><mml:mi>R</mml:mi><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:mrow><mml:mo stretchy="false">]</mml:mo></mml:mrow><mml:mo>⁢</mml:mo><mml:mrow><mml:munderover><mml:mo largeop="true" movablelimits="false" symmetric="true">∏</mml:mo><mml:mrow><mml:mi>i</mml:mi><mml:mo>=</mml:mo><mml:mrow><mml:msub><mml:mi>N</mml:mi><mml:mi>r</mml:mi></mml:msub><mml:mo>+</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:mrow><mml:mrow><mml:msub><mml:mi>N</mml:mi><mml:mi>r</mml:mi></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mi>N</mml:mi><mml:mi>h</mml:mi></mml:msub></mml:mrow></mml:munderover><mml:mrow><mml:munderover><mml:mo largeop="true" movablelimits="false" symmetric="true">∏</mml:mo><mml:mrow><mml:mi>j</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:msub><mml:mi>J</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:munderover><mml:mrow><mml:mo stretchy="false">[</mml:mo><mml:mrow><mml:msub><mml:mi>Z</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mo lspace="2.5pt" rspace="2.5pt" stretchy="false">|</mml:mo><mml:mrow><mml:mi>R</mml:mi><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:mrow><mml:mo stretchy="false">]</mml:mo></mml:mrow></mml:mrow></mml:mrow></mml:mrow></mml:mrow></mml:mrow></mml:mrow><mml:mo>.</mml:mo></mml:mrow></mml:math></disp-formula></p><p>where <inline-formula><mml:math id="inf25"><mml:mrow><mml:mo stretchy="false">[</mml:mo><mml:mo>⋅</mml:mo><mml:mo stretchy="false">]</mml:mo></mml:mrow></mml:math></inline-formula> is a shorthand notation for ‘the distribution of’ and <inline-formula><mml:math id="inf26"><mml:msub><mml:mi>J</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:math></inline-formula> denotes the number of individuals at household <inline-formula><mml:math id="inf27"><mml:mi>i</mml:mi></mml:math></inline-formula>. This model structure is shown schematically in <xref ref-type="fig" rid="fig2">Figure 2</xref>. The conditional independence assumption in <xref ref-type="disp-formula" rid="equ1">Equation 1</xref> is reasonable for a vector-borne disease or one that is transmitted indirectly, in which context the observed rat indices are to be considered as noisy indicators of the unobservable spatial variation in the extent to which the environment is contaminated with rat-derived pathogen. It would be more questionable for applications in which the disease of interest is spread by direct transmission from rat to human.</p><fig id="fig2" position="float"><label>Figure 2.</label><caption><title>Directed acyclic graph (DAG) of the rattiness-infection model framework.</title><p><inline-formula><mml:math id="inf28"><mml:mrow><mml:mi>R</mml:mi><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mi>x</mml:mi><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:math></inline-formula> is the value of a spatially continuous stochastic rattiness process at location <inline-formula><mml:math id="inf29"><mml:mi>x</mml:mi></mml:math></inline-formula>. The outcome variables <inline-formula><mml:math id="inf30"><mml:mrow><mml:msub><mml:mi>Y</mml:mi><mml:mi>k</mml:mi></mml:msub><mml:mo>:</mml:mo><mml:mrow><mml:mi>k</mml:mi><mml:mo>=</mml:mo><mml:mrow><mml:mn>1</mml:mn><mml:mo>,</mml:mo><mml:mi mathvariant="normal">…</mml:mi><mml:mo>,</mml:mo><mml:mn>5</mml:mn></mml:mrow></mml:mrow></mml:mrow></mml:math></inline-formula> are the set of five rat abundance indices that provide information about <inline-formula><mml:math id="inf31"><mml:mrow><mml:mi>R</mml:mi><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mi>x</mml:mi><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:math></inline-formula>: traps (<inline-formula><mml:math id="inf32"><mml:mrow><mml:mi>k</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:math></inline-formula>), track plates (<inline-formula><mml:math id="inf33"><mml:mrow><mml:mi>k</mml:mi><mml:mo>=</mml:mo><mml:mn>2</mml:mn></mml:mrow></mml:math></inline-formula>), number of burrows (<inline-formula><mml:math id="inf34"><mml:mrow><mml:mi>k</mml:mi><mml:mo>=</mml:mo><mml:mn>3</mml:mn></mml:mrow></mml:math></inline-formula>), presence of faecal droppings (<inline-formula><mml:math id="inf35"><mml:mrow><mml:mi>k</mml:mi><mml:mo>=</mml:mo><mml:mn>4</mml:mn></mml:mrow></mml:math></inline-formula>) and presence of trails (<inline-formula><mml:math id="inf36"><mml:mrow><mml:mi>k</mml:mi><mml:mo>=</mml:mo><mml:mn>5</mml:mn></mml:mrow></mml:math></inline-formula>). The outcome variable <inline-formula><mml:math id="inf37"><mml:msub><mml:mi>Z</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> is the observed health outcome, in this case this represents infection status. The terms <italic>d</italic><sub><italic>h</italic></sub> and <italic>d</italic><sub><italic>r</italic></sub> represent the sets of spatially continuous explanatory variables which contribute to spatial variation in infection risk in humans and <inline-formula><mml:math id="inf38"><mml:mrow><mml:mi>R</mml:mi><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mi>x</mml:mi><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:math></inline-formula>, respectively. The terms <italic>d</italic><sub><italic>h</italic></sub> and <italic>d</italic><sub><italic>r</italic></sub> are not mutually exclusive groups of explanatory variables and the same variables may contribute to both infection risk and <inline-formula><mml:math id="inf39"><mml:mrow><mml:mi>R</mml:mi><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mi>x</mml:mi><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:math></inline-formula>. The term <inline-formula><mml:math id="inf40"><mml:mi>e</mml:mi></mml:math></inline-formula> represents a set of individual- and household-level explanatory variables which contribute to variation in infection risk. Square objects correspond to observable variables, and circles to latent random variables.</p></caption><graphic mimetype="image" mime-subtype="tiff" xlink:href="elife-73120-fig2-v4.tif"/></fig><sec id="s2-2-1"><title>Rattiness</title><p>We define rattiness at location <inline-formula><mml:math id="inf41"><mml:mi>x</mml:mi></mml:math></inline-formula> as<disp-formula id="equ2"><label>(2)</label><mml:math id="m2"><mml:mtable columnspacing="5pt" displaystyle="true"><mml:mtr><mml:mtd columnalign="right"><mml:mrow><mml:mrow><mml:mi>R</mml:mi><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow><mml:mo separator="true"> </mml:mo><mml:mo>=</mml:mo></mml:mrow></mml:mtd><mml:mtd columnalign="left"><mml:mrow><mml:mrow><mml:mrow><mml:msubsup><mml:mpadded lspace="10pt" width="+10pt"><mml:mi>d</mml:mi></mml:mpadded><mml:mi>r</mml:mi><mml:mo>⊺</mml:mo></mml:msubsup><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>⁢</mml:mo><mml:msub><mml:mi>β</mml:mi><mml:mi>r</mml:mi></mml:msub></mml:mrow><mml:mo>+</mml:mo><mml:mrow><mml:mpadded width="+2.8pt"><mml:msqrt><mml:mi>ψ</mml:mi></mml:msqrt></mml:mpadded><mml:mo>⁢</mml:mo><mml:mi>S</mml:mi><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow><mml:mo>+</mml:mo><mml:mrow><mml:mpadded width="+2.8pt"><mml:msqrt><mml:mrow><mml:mn>1</mml:mn><mml:mo>-</mml:mo><mml:mi>ψ</mml:mi></mml:mrow></mml:msqrt></mml:mpadded><mml:mo>⁢</mml:mo><mml:msub><mml:mi>U</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:mrow><mml:mo>.</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula></p><p>The terms on the right-hand side of <xref ref-type="disp-formula" rid="equ2">Equation 2</xref> have the following interpretations: <inline-formula><mml:math id="inf42"><mml:mrow><mml:msub><mml:mi>d</mml:mi><mml:mi>r</mml:mi></mml:msub><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:math></inline-formula> is a vector of explanatory variables with associated regression coefficients <inline-formula><mml:math id="inf43"><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mrow><mml:msub><mml:mi>β</mml:mi><mml:mrow><mml:mi>r</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mstyle></mml:math></inline-formula> is a set of independently and identically distributed zero-mean Gaussian variables with unit variance; <inline-formula><mml:math id="inf44"><mml:mrow><mml:mi>S</mml:mi><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:math></inline-formula> is a stationary and isotropic spatial Gaussian process; <inline-formula><mml:math id="inf45"><mml:mrow><mml:mi>ψ</mml:mi><mml:mo>∈</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mn>0</mml:mn><mml:mo>,</mml:mo><mml:mn>1</mml:mn><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:math></inline-formula> regulates the relative contributions of spatially structured variation, <inline-formula><mml:math id="inf46"><mml:mrow><mml:mi>S</mml:mi><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:math></inline-formula>, and unstructured random variation, <inline-formula><mml:math id="inf47"><mml:msub><mml:mi>U</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:math></inline-formula>, to <inline-formula><mml:math id="inf48"><mml:mrow><mml:mi>R</mml:mi><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:math></inline-formula>.</p><p>For the Gaussian process, <inline-formula><mml:math id="inf49"><mml:mrow><mml:mi>S</mml:mi><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:math></inline-formula>, we specify an exponential spatial correlation function:</p><p><inline-formula><mml:math id="inf50"><mml:mrow><mml:mrow><mml:mtext>Corr</mml:mtext><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>S</mml:mi><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mi>x</mml:mi><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow><mml:mo>,</mml:mo><mml:mrow><mml:mi>S</mml:mi><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>x</mml:mi><mml:mo>⁢</mml:mo><mml:mi mathvariant="normal">’</mml:mi></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow><mml:mo>=</mml:mo><mml:msup><mml:mi>e</mml:mi><mml:mrow><mml:mo>-</mml:mo><mml:mrow><mml:mi>u</mml:mi><mml:mo>/</mml:mo><mml:mi>ϕ</mml:mi></mml:mrow></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula> where <inline-formula><mml:math id="inf51"><mml:mrow><mml:mi>u</mml:mi><mml:mo>=</mml:mo><mml:mrow><mml:mo fence="true">||</mml:mo><mml:mrow><mml:mi>x</mml:mi><mml:mo>-</mml:mo><mml:msup><mml:mi>x</mml:mi><mml:mo>′</mml:mo></mml:msup></mml:mrow><mml:mo fence="true">||</mml:mo></mml:mrow></mml:mrow></mml:math></inline-formula> is the Euclidean distance between <inline-formula><mml:math id="inf52"><mml:mi>x</mml:mi></mml:math></inline-formula> and <inline-formula><mml:math id="inf53"><mml:msup><mml:mi>x</mml:mi><mml:mo>′</mml:mo></mml:msup></mml:math></inline-formula>, and <inline-formula><mml:math id="inf54"><mml:mi>ϕ</mml:mi></mml:math></inline-formula> regulates how fast the spatial correlation decays to zero with increasing distance u.</p></sec><sec id="s2-2-2"><title>Rat abundance outcomes</title><p>The variable <inline-formula><mml:math id="inf55"><mml:msub><mml:mi>Y</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:msub></mml:math></inline-formula>, conditionally on <inline-formula><mml:math id="inf56"><mml:mrow><mml:mi>R</mml:mi><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:math></inline-formula>, is a binomial variable representing the number of traps, out of <inline-formula><mml:math id="inf57"><mml:msub><mml:mi>n</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:msub></mml:math></inline-formula>, in which rats were captured. We assume that the times of rat captures from a trap follow a time-varying inhomogeneous Poisson process with intensity <inline-formula><mml:math id="inf58"><mml:mrow><mml:msub><mml:mi>t</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo>⁢</mml:mo><mml:msub><mml:mi>μ</mml:mi><mml:mn>1</mml:mn></mml:msub><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:math></inline-formula>, where <italic>t</italic><sub><italic>i</italic></sub> is the time (in days) for which a trap is operative and <inline-formula><mml:math id="inf59"><mml:mrow><mml:mrow><mml:mi>log</mml:mi><mml:mo>⁡</mml:mo><mml:mrow><mml:mo stretchy="false">{</mml:mo><mml:mrow><mml:msub><mml:mi>μ</mml:mi><mml:mn>1</mml:mn></mml:msub><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow><mml:mo stretchy="false">}</mml:mo></mml:mrow></mml:mrow><mml:mo>=</mml:mo><mml:mrow><mml:msub><mml:mi>α</mml:mi><mml:mn>1</mml:mn></mml:msub><mml:mo>+</mml:mo><mml:mrow><mml:msub><mml:mi>σ</mml:mi><mml:mn>1</mml:mn></mml:msub><mml:mo>⁢</mml:mo><mml:mi>R</mml:mi><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:mrow></mml:mrow></mml:math></inline-formula>. It follows that the probability of capturing a rat is<disp-formula id="equ3"><mml:math id="m3"><mml:mrow><mml:mn>1</mml:mn><mml:mo>−</mml:mo><mml:mi>exp</mml:mi><mml:mo>⁡</mml:mo><mml:mo fence="false" stretchy="false">{</mml:mo><mml:mo>−</mml:mo><mml:msub><mml:mi>t</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:msub><mml:mi>μ</mml:mi><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo stretchy="false">)</mml:mo><mml:mo fence="false" stretchy="false">}</mml:mo><mml:mo>.</mml:mo></mml:mrow></mml:math></disp-formula></p><p>If a trap is found closed without a rat, we assume that the trap was disturbed and set <inline-formula><mml:math id="inf60"><mml:mrow><mml:mi>t</mml:mi><mml:mo>=</mml:mo><mml:mn>0.5</mml:mn></mml:mrow></mml:math></inline-formula>. In all other cases, <inline-formula><mml:math id="inf61"><mml:mrow><mml:mi>t</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:math></inline-formula> day. We conducted a sensitivity analysis for this assumption (see ‘Appendix 6’) and found that it did not materially affect rattiness parameter estimates (<xref ref-type="table" rid="app6table1">Appendix 6—table 1</xref>).</p><p><inline-formula><mml:math id="inf62"><mml:msub><mml:mi>Y</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mn>2</mml:mn></mml:mrow></mml:msub></mml:math></inline-formula>, is the number of track-plates, out of <inline-formula><mml:math id="inf63"><mml:msub><mml:mi>n</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mn>2</mml:mn></mml:mrow></mml:msub></mml:math></inline-formula>, that show presence of rats. We model this as a binomial variable with <inline-formula><mml:math id="inf64"><mml:msub><mml:mi>n</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mn>2</mml:mn></mml:mrow></mml:msub></mml:math></inline-formula> trials and probability <inline-formula><mml:math id="inf65"><mml:mrow><mml:msub><mml:mi>μ</mml:mi><mml:mn>2</mml:mn></mml:msub><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:math></inline-formula> where <inline-formula><mml:math id="inf66"><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mrow><mml:mi>log</mml:mi><mml:mo>⁡</mml:mo><mml:mo fence="false" stretchy="false">{</mml:mo><mml:msub><mml:mi>μ</mml:mi><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo stretchy="false">)</mml:mo><mml:mrow><mml:mo>/</mml:mo></mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mn>1</mml:mn><mml:mo>−</mml:mo><mml:msub><mml:mi>μ</mml:mi><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo stretchy="false">)</mml:mo><mml:mo stretchy="false">)</mml:mo><mml:mo fence="false" stretchy="false">}</mml:mo><mml:mo>=</mml:mo><mml:msub><mml:mi>α</mml:mi><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mi>σ</mml:mi><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub><mml:mi>R</mml:mi><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mstyle></mml:math></inline-formula>.</p><p><inline-formula><mml:math id="inf67"><mml:msub><mml:mi>Y</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mn>3</mml:mn></mml:mrow></mml:msub></mml:math></inline-formula>, is the number of active rat burrows found at location <italic>x</italic><sub><italic>i</italic></sub>. We model this as a Poisson variable with rate <inline-formula><mml:math id="inf68"><mml:mrow><mml:msub><mml:mi>μ</mml:mi><mml:mn>3</mml:mn></mml:msub><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:math></inline-formula> where <inline-formula><mml:math id="inf69"><mml:mrow><mml:mrow><mml:mi>log</mml:mi><mml:mo>⁡</mml:mo><mml:mrow><mml:mo stretchy="false">{</mml:mo><mml:mrow><mml:msub><mml:mi>μ</mml:mi><mml:mn>3</mml:mn></mml:msub><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow><mml:mo stretchy="false">}</mml:mo></mml:mrow></mml:mrow><mml:mo>=</mml:mo><mml:mrow><mml:msub><mml:mi>α</mml:mi><mml:mn>3</mml:mn></mml:msub><mml:mo>+</mml:mo><mml:mrow><mml:msub><mml:mi>σ</mml:mi><mml:mn>3</mml:mn></mml:msub><mml:mo>⁢</mml:mo><mml:mi>R</mml:mi><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:mrow></mml:mrow></mml:math></inline-formula>.</p><p>The variables <inline-formula><mml:math id="inf70"><mml:msub><mml:mi>Y</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mn>4</mml:mn></mml:mrow></mml:msub></mml:math></inline-formula> and <inline-formula><mml:math id="inf71"><mml:msub><mml:mi>Y</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mn>5</mml:mn></mml:mrow></mml:msub></mml:math></inline-formula> are binary indicators taking value 1, if at least one faecal dropping or trail, respectively, was found at location <italic>x</italic><sub><italic>i</italic></sub> and 0 otherwise. We model the probability of finding a sign of faecal droppings or trails, <inline-formula><mml:math id="inf72"><mml:mrow><mml:msub><mml:mi>μ</mml:mi><mml:mn>4</mml:mn></mml:msub><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="inf73"><mml:mrow><mml:msub><mml:mi>μ</mml:mi><mml:mn>5</mml:mn></mml:msub><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:math></inline-formula>, using logit-linear regressions <inline-formula><mml:math id="inf74"><mml:mrow><mml:mrow><mml:mi>log</mml:mi><mml:mo>⁡</mml:mo><mml:mrow><mml:mo stretchy="false">{</mml:mo><mml:mrow><mml:mrow><mml:msub><mml:mi>μ</mml:mi><mml:mn>4</mml:mn></mml:msub><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow><mml:mo>/</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mn>1</mml:mn><mml:mo>-</mml:mo><mml:mrow><mml:msub><mml:mi>μ</mml:mi><mml:mn>4</mml:mn></mml:msub><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow><mml:mo stretchy="false">}</mml:mo></mml:mrow></mml:mrow><mml:mo>=</mml:mo><mml:mrow><mml:msub><mml:mi>α</mml:mi><mml:mn>4</mml:mn></mml:msub><mml:mo>+</mml:mo><mml:mrow><mml:msub><mml:mi>σ</mml:mi><mml:mn>4</mml:mn></mml:msub><mml:mo>⁢</mml:mo><mml:mi>R</mml:mi><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:mrow></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="inf75"><mml:mrow><mml:mrow><mml:mi>log</mml:mi><mml:mo>⁡</mml:mo><mml:mrow><mml:mo stretchy="false">{</mml:mo><mml:mrow><mml:mrow><mml:msub><mml:mi>μ</mml:mi><mml:mn>5</mml:mn></mml:msub><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow><mml:mo>/</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mn>1</mml:mn><mml:mo>-</mml:mo><mml:mrow><mml:msub><mml:mi>μ</mml:mi><mml:mn>5</mml:mn></mml:msub><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow><mml:mo stretchy="false">}</mml:mo></mml:mrow></mml:mrow><mml:mo>=</mml:mo><mml:mrow><mml:msub><mml:mi>α</mml:mi><mml:mn>5</mml:mn></mml:msub><mml:mo>+</mml:mo><mml:mrow><mml:msub><mml:mi>σ</mml:mi><mml:mn>5</mml:mn></mml:msub><mml:mo>⁢</mml:mo><mml:mi>R</mml:mi><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:mrow></mml:mrow></mml:math></inline-formula>.</p></sec><sec id="s2-2-3"><title>Human infection outcome</title><p>Conditionally on <inline-formula><mml:math id="inf76"><mml:mrow><mml:mi>R</mml:mi><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:math></inline-formula>, we model the binary human infection outcome <inline-formula><mml:math id="inf77"><mml:msub><mml:mi>Z</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> as a Bernoulli variable with the probability, <inline-formula><mml:math id="inf78"><mml:mrow><mml:msub><mml:mi>p</mml:mi><mml:mi>j</mml:mi></mml:msub><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:math></inline-formula>, that individual <inline-formula><mml:math id="inf79"><mml:mi>j</mml:mi></mml:math></inline-formula> at location <inline-formula><mml:math id="inf80"><mml:mi>i</mml:mi></mml:math></inline-formula> is infected. This is modelled with a logit link function and the following linear predictor<disp-formula id="equ4"><label>(3)</label><mml:math id="m4"><mml:mrow><mml:mtable columnalign="right left" rowspacing="4pt" columnspacing="1em"><mml:mtr><mml:mtd><mml:mi>log</mml:mi><mml:mo>⁡</mml:mo><mml:mrow><mml:mo>{</mml:mo><mml:mfrac><mml:mrow><mml:msub><mml:mi>p</mml:mi><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mrow><mml:mn>1</mml:mn><mml:mo>−</mml:mo><mml:msub><mml:mi>p</mml:mi><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mfrac><mml:mo>}</mml:mo></mml:mrow><mml:mspace width="1em"/><mml:mo>=</mml:mo></mml:mtd><mml:mtd><mml:mspace width="1em"/><mml:msub><mml:mi>α</mml:mi><mml:mrow><mml:mi>h</mml:mi></mml:mrow></mml:msub><mml:mo>+</mml:mo><mml:msubsup><mml:mi>d</mml:mi><mml:mrow><mml:mi>h</mml:mi></mml:mrow><mml:mrow><mml:mo>⊺</mml:mo></mml:mrow></mml:msubsup><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo stretchy="false">)</mml:mo><mml:msub><mml:mi>β</mml:mi><mml:mrow><mml:mi>h</mml:mi></mml:mrow></mml:msub><mml:mo>+</mml:mo><mml:msubsup><mml:mi>e</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>j</mml:mi></mml:mrow><mml:mrow><mml:mo>⊺</mml:mo></mml:mrow></mml:msubsup><mml:mi>γ</mml:mi><mml:mo>+</mml:mo><mml:mi>ξ</mml:mi><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo stretchy="false">)</mml:mo><mml:mi>R</mml:mi><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo stretchy="false">)</mml:mo><mml:mo>+</mml:mo><mml:msub><mml:mi>V</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mtd></mml:mtr></mml:mtable></mml:mrow></mml:math></disp-formula></p><p>where: <inline-formula><mml:math id="inf81"><mml:mrow><mml:msub><mml:mi>d</mml:mi><mml:mi>h</mml:mi></mml:msub><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:math></inline-formula> is a vector of spatially continuous explanatory variables with associated regression coefficients <inline-formula><mml:math id="inf82"><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mrow><mml:msub><mml:mi>β</mml:mi><mml:mrow><mml:mi>h</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mstyle></mml:math></inline-formula> is a vector of household-level and individual-level explanatory variables with associated regression coefficients <inline-formula><mml:math id="inf83"><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mrow><mml:mi>γ</mml:mi></mml:mrow></mml:mstyle></mml:math></inline-formula>; <inline-formula><mml:math id="inf84"><mml:msub><mml:mi>V</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:math></inline-formula> is a set of independently and identically distributed zero-mean Gaussian variables with variance <inline-formula><mml:math id="inf85"><mml:msup><mml:mi>σ</mml:mi><mml:mn>2</mml:mn></mml:msup></mml:math></inline-formula> representing unexplained household-level variation; <inline-formula><mml:math id="inf86"><mml:mrow><mml:mi>ξ</mml:mi><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:math></inline-formula> regulates the contribution of rattiness to risk of infection.</p></sec><sec id="s2-2-4"><title>Parameterising to test for an interaction with relative elevation</title><p>To explore variation in the role of local rat populations in transmission within sections of the study area with different flooding risk profiles, ξ was parameterised to test for an interaction between rattiness and a categorical parameterisation of household elevation relative to the bottom of the valley (modelled as a piecewise constant function with breaks at 6.7 and 15.6 m, resulting in three categories: low, medium and high elevation levels.) on human infection risk. This was implemented by first dividing the study area into three elevation categories with different flooding risk profiles (as observed during our work in the study area over the last 15 years): low (<inline-formula><mml:math id="inf87"><mml:mrow><mml:mn>0</mml:mn><mml:mo>-</mml:mo><mml:mrow><mml:mn>6.7</mml:mn><mml:mo>⁢</mml:mo><mml:mi>m</mml:mi></mml:mrow></mml:mrow></mml:math></inline-formula> from bottom of valley; high flooding risk with maintenance of floodwater for long periods), medium (<inline-formula><mml:math id="inf88"><mml:mrow><mml:mn>6.7</mml:mn><mml:mo>-</mml:mo><mml:mrow><mml:mn>15.6</mml:mn><mml:mo>⁢</mml:mo><mml:mi>m</mml:mi></mml:mrow></mml:mrow></mml:math></inline-formula>; moderate flooding with high water runoff), and high (<inline-formula><mml:math id="inf89"><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mrow><mml:mo>&gt;</mml:mo><mml:mn>15.6</mml:mn><mml:mi>m</mml:mi></mml:mrow></mml:mstyle></mml:math></inline-formula>; limited flooding and water runoff). Our study was then designed to evenly sample across this elevation gradient and minimum and maximum values for each elevation category were chosen to include an equal number of households in each level. We then define the set of household locations in each low, medium, and high elevation category as <inline-formula><mml:math id="inf90"><mml:msub><mml:mi>x</mml:mi><mml:mrow><mml:mi>l</mml:mi><mml:mo>⁢</mml:mo><mml:mi>o</mml:mi><mml:mo>⁢</mml:mo><mml:mi>w</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula>, <inline-formula><mml:math id="inf91"><mml:msub><mml:mi>x</mml:mi><mml:mrow><mml:mi>m</mml:mi><mml:mo>⁢</mml:mo><mml:mi>e</mml:mi><mml:mo>⁢</mml:mo><mml:mi>d</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula>, and <inline-formula><mml:math id="inf92"><mml:msub><mml:mi>x</mml:mi><mml:mrow><mml:mi>h</mml:mi><mml:mo>⁢</mml:mo><mml:mi>i</mml:mi><mml:mo>⁢</mml:mo><mml:mi>g</mml:mi><mml:mo>⁢</mml:mo><mml:mi>h</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula>, respectively. Three values of ξ were then estimated such that:<disp-formula id="equ5"><label>(4)</label><mml:math id="m5"><mml:mrow><mml:mrow><mml:mi>ξ</mml:mi><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow><mml:mo>=</mml:mo><mml:mrow><mml:mo>{</mml:mo><mml:mtable columnspacing="5pt" displaystyle="true" rowspacing="0pt"><mml:mtr><mml:mtd columnalign="center"><mml:msub><mml:mi>ξ</mml:mi><mml:mrow><mml:mi>l</mml:mi><mml:mo>⁢</mml:mo><mml:mi>o</mml:mi><mml:mo>⁢</mml:mo><mml:mi>w</mml:mi></mml:mrow></mml:msub></mml:mtd><mml:mtd columnalign="left"><mml:mrow><mml:mrow><mml:mtext>at locations </mml:mtext><mml:mo>⁢</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow><mml:mo>∈</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mrow><mml:mi>l</mml:mi><mml:mo>⁢</mml:mo><mml:mi>o</mml:mi><mml:mo>⁢</mml:mo><mml:mi>w</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd columnalign="center"><mml:msub><mml:mi>ξ</mml:mi><mml:mrow><mml:mi>m</mml:mi><mml:mo>⁢</mml:mo><mml:mi>e</mml:mi><mml:mo>⁢</mml:mo><mml:mi>d</mml:mi></mml:mrow></mml:msub></mml:mtd><mml:mtd columnalign="left"><mml:mrow><mml:mrow><mml:mtext>at locations </mml:mtext><mml:mo>⁢</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow><mml:mo>∈</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mrow><mml:mi>m</mml:mi><mml:mo>⁢</mml:mo><mml:mi>e</mml:mi><mml:mo>⁢</mml:mo><mml:mi>d</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd columnalign="center"><mml:msub><mml:mi>ξ</mml:mi><mml:mrow><mml:mi>h</mml:mi><mml:mo>⁢</mml:mo><mml:mi>i</mml:mi><mml:mo>⁢</mml:mo><mml:mi>g</mml:mi><mml:mo>⁢</mml:mo><mml:mi>h</mml:mi></mml:mrow></mml:msub></mml:mtd><mml:mtd columnalign="left"><mml:mrow><mml:mrow><mml:mtext>at locations </mml:mtext><mml:mo>⁢</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow><mml:mo>∈</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mrow><mml:mi>h</mml:mi><mml:mo>⁢</mml:mo><mml:mi>i</mml:mi><mml:mo>⁢</mml:mo><mml:mi>g</mml:mi><mml:mo>⁢</mml:mo><mml:mi>h</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:mrow></mml:mrow></mml:math></disp-formula></p></sec></sec><sec id="s2-3"><title>Variable selection</title><sec id="s2-3-1"><title>Predictors of rattiness</title><p>The exploratory analysis for the rattiness model followed the steps developed and described previously (<xref ref-type="bibr" rid="bib30">Eyre et al., 2020</xref>). Firstly, we explored the functional form of the relationship between rattiness and three continuous explanatory variables: relative elevation, distance to large refuse piles and land cover type. To do this, we fitted a simplified rattiness model that did not include covariates or account for spatial correlation. Rattiness is consequently modelled purely as unstructured random variation; hence <inline-formula><mml:math id="inf93"><mml:mrow><mml:mrow><mml:mi>R</mml:mi><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow><mml:mo>=</mml:mo><mml:msub><mml:mi>U</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> (<xref ref-type="bibr" rid="bib30">Eyre et al., 2020</xref>). We then computed the predictive expectation of this simplified rattiness process, <inline-formula><mml:math id="inf94"><mml:msub><mml:mover accent="true"><mml:mi>U</mml:mi><mml:mo stretchy="false">^</mml:mo></mml:mover><mml:mi>i</mml:mi></mml:msub></mml:math></inline-formula>, at all locations for which rat index measurements were observed. A generalized additive model (GAM) (<xref ref-type="bibr" rid="bib42">Hastie and Tibshirani, 1987</xref>) was then fitted to the <inline-formula><mml:math id="inf95"><mml:msub><mml:mover accent="true"><mml:mi>U</mml:mi><mml:mo stretchy="false">^</mml:mo></mml:mover><mml:mi>i</mml:mi></mml:msub></mml:math></inline-formula> with the three explanatory variables and the shape of each fitted smooth function was used to assess whether the relationship between each variable and rattiness was linear. Non-linear relationships were modelled using linear splines based on the identified functional form, with knots placed at relative elevations of 8 m and 22 m, and at a distance from large refuse piles of 50 m (see <xref ref-type="fig" rid="app1fig1">Appendix 1—figure 1</xref>). For variable selection, linear models with all combinations of these variables were fitted and ranked by their Akaike Information Criterion (AIC) value (<xref ref-type="bibr" rid="bib10">Bozdogan, 1987</xref>). The model with the lowest AIC included all of the variables and their linear splines (<xref ref-type="table" rid="app2table1">Appendix 2—table 1</xref>).</p><p>Following the methodology outlined previously (<xref ref-type="bibr" rid="bib30">Eyre et al., 2020</xref>), we fitted the full geostatistical rattiness model using the variables selected in ‘Predictors of rattiness’. We then plugged in the maximum likelihood estimates and made predictions for rattiness at all human household locations; here, the predictive target is <inline-formula><mml:math id="inf96"><mml:mrow><mml:mrow><mml:mi>T</mml:mi><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mi>x</mml:mi><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow><mml:mo>=</mml:mo><mml:mrow><mml:mrow><mml:msub><mml:mi>d</mml:mi><mml:mi>r</mml:mi></mml:msub><mml:mo>⁢</mml:mo><mml:msup><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mi>x</mml:mi><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>⊺</mml:mo></mml:msup><mml:mo>⁢</mml:mo><mml:msub><mml:mi>β</mml:mi><mml:mi>r</mml:mi></mml:msub></mml:mrow><mml:mo>+</mml:mo><mml:mrow><mml:msqrt><mml:mi>ψ</mml:mi></mml:msqrt><mml:mo>⁢</mml:mo><mml:mi>S</mml:mi><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mi>x</mml:mi><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:mrow></mml:mrow></mml:math></inline-formula> rather than <inline-formula><mml:math id="inf97"><mml:mrow><mml:mi>R</mml:mi><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mi>x</mml:mi><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:math></inline-formula> as defined by <xref ref-type="disp-formula" rid="equ2">Equation 2</xref> because the predicted value of the spatially uncorrelated <inline-formula><mml:math id="inf98"><mml:mrow><mml:mi>U</mml:mi><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mi>x</mml:mi><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:math></inline-formula> at any location <inline-formula><mml:math id="inf99"><mml:mi>x</mml:mi></mml:math></inline-formula> where rat abundance indices have not been recorded is zero. The expectation of this predictive distribution was then computed to provide an estimate of mean predicted rattiness at all household locations. This was then used as an exploratory covariate in the following section.</p></sec><sec id="s2-3-2"><title>Risk factors for human infection</title><p>All explanatory variables were grouped into the following four domains: social status, household environment, occupational exposures and behavioural exposures (see Table 2 for the full list of considered variables by group). A group of a priori confounding variables was then identified, with age, gender and household per capita income selected based on previous findings (<xref ref-type="bibr" rid="bib40">Hagan et al., 2016</xref>; <xref ref-type="bibr" rid="bib60">Reis et al., 2008</xref>; <xref ref-type="bibr" rid="bib33">Felzemburgh et al., 2014</xref>), and valley also included to account for otherwise unmeasured differences between the three valley regions within the study area. In the household environment domain, two variables were used to capture risk due to sewer flooding close to the household: (i) the presence of an open sewer within 10 metres of the household location and (ii) a binary ‘unprotected from open sewer’ variable which identified those households within 10 metres of an open sewer that did not have any physical barriers erected to prevent water overflow. Three high-risk occupations were included in the occupational exposures domain as binary variables. Construction workers and refuse collectors have direct contact with potentially contaminated soil, building materials and refuse in areas that provide harbourage and food for rats. Travelling salespeople have regular and high levels of exposure to the environment (particularly during flooding events) as they move from house to house by foot. Two other binary occupational exposure variables were included that measured whether a participant worked in an occupation that involves contact with floodwater or sewer water.</p><p>The relationship between continuous explanatory variables and infection risk (on the log-odds scale) was assessed for linearity by fitting a GAM while controlling for the four confounders. As before, non-linear relationships were modelled using linear splines based on the identified functional form. Age was modelled with a knot at 30 years old, education at 5 years and relative elevation at 20 m (<xref ref-type="fig" rid="app1fig2">Appendix 1—figure 2</xref>). A univariable analysis was conducted to explore the relationship between each explanatory variable and infection risk while controlling for the four a priori confounding variables. Crude and adjusted odds ratios were estimated using a mixed effects logistic regression with a random effect to account for unexplained variation at the household-level.</p><p>For the multivariable model, variable selection was conducted within each domain separately. Mixed-effect logistic regression models were fitted for all combinations of the variables in each domain and were ranked by their Akaike Information Criterion (AIC) value (<xref ref-type="table" rid="app2table2">Appendix 2—table 2</xref>). Variables in the model with the minimum AIC value were selected for each domain. Age, gender, household per capita income and valley were controlled for in all models throughout this process. Then, the variables selected from each domain were combined and the mean predicted rattiness estimate (obtained in ‘Predictors of rattiness at each household location’) was included with an interaction with relative elevation category. This set of variables was reduced once more following the same process and all selected variables were included in the final multivariable model (‘Appendix 3’).</p></sec></sec><sec id="s2-4"><title>Model fitting</title><p>All rat and human variables selected in ‘Variable selection’ were then included in the full joint model defined in <xref ref-type="disp-formula" rid="equ2">Equation 2</xref> and <xref ref-type="disp-formula" rid="equ4">Equation 3</xref>. We fit this model using the Monte Carlo maximum likelihood (MCML) method (<xref ref-type="bibr" rid="bib16">Christensen, 2004</xref>) as described in ‘Appendix 4’, and compute 95% confidence intervals by re-fitting the model for 1000 parametric bootstraps. A formal diagnostic investigation of randomized quantile residuals (<xref ref-type="bibr" rid="bib28">Dunn and Smyth, 1996</xref>; <xref ref-type="bibr" rid="bib64">Smyth et al., 2021</xref>) is included ‘Appendix 7’. We found no evidence in the diagnostic plots (<xref ref-type="fig" rid="app7fig1">Appendix 7—figure 1</xref>) to suggest that there were issues with our modelling approach.</p></sec><sec id="s2-5"><title>Prediction maps</title><p>The maximum likelihood parameter estimates were then used to make prediction maps for rattiness and infection risk as follows.</p><p>To map a general predictive target, <inline-formula><mml:math id="inf100"><mml:mrow><mml:mi>T</mml:mi><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mi>x</mml:mi><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:math></inline-formula> say, we first define <inline-formula><mml:math id="inf101"><mml:mrow><mml:msup><mml:mi>T</mml:mi><mml:mo>*</mml:mo></mml:msup><mml:mo>=</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>T</mml:mi><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:msubsup><mml:mi>x</mml:mi><mml:mn>1</mml:mn><mml:mo>*</mml:mo></mml:msubsup><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow><mml:mo>,</mml:mo><mml:mi mathvariant="normal">…</mml:mi><mml:mo>,</mml:mo><mml:mrow><mml:mi>T</mml:mi><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:msubsup><mml:mi>x</mml:mi><mml:mi>H</mml:mi><mml:mo>*</mml:mo></mml:msubsup><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:math></inline-formula>, where <inline-formula><mml:math id="inf102"><mml:mrow><mml:msup><mml:mi>X</mml:mi><mml:mo>*</mml:mo></mml:msup><mml:mo>=</mml:mo><mml:mrow><mml:mo stretchy="false">{</mml:mo><mml:msubsup><mml:mi>x</mml:mi><mml:mn>1</mml:mn><mml:mo>*</mml:mo></mml:msubsup><mml:mo>,</mml:mo><mml:mi mathvariant="normal">…</mml:mi><mml:mo>,</mml:mo><mml:msubsup><mml:mi>x</mml:mi><mml:mi>H</mml:mi><mml:mo>*</mml:mo></mml:msubsup><mml:mo stretchy="false">}</mml:mo></mml:mrow></mml:mrow></mml:math></inline-formula> is a finely spaced grid of locations to cover the region of interest. We then draw samples from the predictive distribution of <inline-formula><mml:math id="inf103"><mml:msup><mml:mi>T</mml:mi><mml:mo>*</mml:mo></mml:msup></mml:math></inline-formula>, that isits conditional distribution given all relevant data. These samples can then be used to compute any desired summary of the predictive distribution. In our analysis, we used as summaries the expectation and 95% prediction interval.</p><p>Our first predictive target is rattiness, for which <inline-formula><mml:math id="inf104"><mml:mrow><mml:mrow><mml:mi>T</mml:mi><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mi>x</mml:mi><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow><mml:mo>=</mml:mo><mml:mrow><mml:mrow><mml:msubsup><mml:mi>d</mml:mi><mml:mi>r</mml:mi><mml:mo>⊺</mml:mo></mml:msubsup><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mi>x</mml:mi><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>⁢</mml:mo><mml:msub><mml:mi>β</mml:mi><mml:mi>r</mml:mi></mml:msub></mml:mrow><mml:mo>+</mml:mo><mml:mrow><mml:msqrt><mml:mi>ψ</mml:mi></mml:msqrt><mml:mo>⁢</mml:mo><mml:mi>S</mml:mi><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mi>x</mml:mi><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:mrow></mml:mrow></mml:math></inline-formula>. Our second is human infection risk, for which <inline-formula><mml:math id="inf105"><mml:mrow><mml:mrow><mml:mi>T</mml:mi><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mi>x</mml:mi><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow><mml:mo>=</mml:mo><mml:mrow><mml:mrow><mml:msubsup><mml:mi>d</mml:mi><mml:mi>h</mml:mi><mml:mo>⊺</mml:mo></mml:msubsup><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mi>x</mml:mi><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>⁢</mml:mo><mml:msub><mml:mi>β</mml:mi><mml:mi>h</mml:mi></mml:msub></mml:mrow><mml:mo>+</mml:mo><mml:mrow><mml:msup><mml:mi>e</mml:mi><mml:mo>⊺</mml:mo></mml:msup><mml:mo>⁢</mml:mo><mml:mi>γ</mml:mi></mml:mrow><mml:mo>+</mml:mo><mml:mrow><mml:mi>ξ</mml:mi><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>⁢</mml:mo><mml:mi>R</mml:mi><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mi>x</mml:mi><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow><mml:mo>+</mml:mo><mml:msub><mml:mi>V</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:mrow></mml:math></inline-formula>. In either case, we first sample from <inline-formula><mml:math id="inf106"><mml:mrow><mml:mo stretchy="false">[</mml:mo><mml:mrow><mml:mi>R</mml:mi><mml:mo lspace="2.5pt" rspace="2.5pt" stretchy="false">|</mml:mo><mml:mrow><mml:mi>W</mml:mi><mml:mo>;</mml:mo><mml:mi>θ</mml:mi><mml:mo>,</mml:mo><mml:mi>ω</mml:mi></mml:mrow></mml:mrow><mml:mo stretchy="false">]</mml:mo></mml:mrow></mml:math></inline-formula> using the same sampling algorithm as for maximizing the likelihood in ‘Joint modelling rat abundance and human infection: the rattiness-infection framework’, with the parameters θ and ω fixed at their maximum likelihood estimates. After obtaining samples <inline-formula><mml:math id="inf107"><mml:msub><mml:mi>r</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mi>b</mml:mi><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:msub></mml:math></inline-formula>, <inline-formula><mml:math id="inf108"><mml:mrow><mml:mi>b</mml:mi><mml:mo>=</mml:mo><mml:mrow><mml:mn>1</mml:mn><mml:mo>,</mml:mo><mml:mi mathvariant="normal">…</mml:mi><mml:mo>,</mml:mo><mml:mi>B</mml:mi></mml:mrow></mml:mrow></mml:math></inline-formula>, we then sample from <inline-formula><mml:math id="inf109"><mml:mrow><mml:mo stretchy="false">[</mml:mo><mml:mrow><mml:msup><mml:mi>T</mml:mi><mml:mo>*</mml:mo></mml:msup><mml:mo lspace="2.5pt" rspace="2.5pt" stretchy="false">|</mml:mo><mml:msub><mml:mi>r</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mi>b</mml:mi><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:msub></mml:mrow><mml:mo stretchy="false">]</mml:mo></mml:mrow></mml:math></inline-formula>, which in both cases follows a multivariate Gaussian distribution with mean and covariance matrix easily obtained from their joint Gaussian distribution, <inline-formula><mml:math id="inf110"><mml:mrow><mml:mo stretchy="false">[</mml:mo><mml:mi>R</mml:mi><mml:mo>,</mml:mo><mml:msup><mml:mi>T</mml:mi><mml:mo>*</mml:mo></mml:msup><mml:mo stretchy="false">]</mml:mo></mml:mrow></mml:math></inline-formula>. The resulting values, <inline-formula><mml:math id="inf111"><mml:mrow><mml:mrow><mml:mrow><mml:mrow><mml:msub><mml:mi>t</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mi>b</mml:mi><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:msub><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:msubsup><mml:mi>x</mml:mi><mml:mi>h</mml:mi><mml:mo>*</mml:mo></mml:msubsup><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow><mml:mo>,</mml:mo><mml:mi>h</mml:mi></mml:mrow><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mo>,</mml:mo><mml:mrow><mml:mrow><mml:mi mathvariant="normal">…</mml:mi><mml:mo>,</mml:mo><mml:mi>H</mml:mi><mml:mo>;</mml:mo><mml:mi>b</mml:mi></mml:mrow><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mo>,</mml:mo><mml:mrow><mml:mi mathvariant="normal">…</mml:mi><mml:mo>,</mml:mo><mml:mi>B</mml:mi></mml:mrow></mml:mrow></mml:math></inline-formula>, constitute <inline-formula><mml:math id="inf112"><mml:mi>b</mml:mi></mml:math></inline-formula> samples drawn from <inline-formula><mml:math id="inf113"><mml:mrow><mml:mo stretchy="false">[</mml:mo><mml:mrow><mml:msup><mml:mi>T</mml:mi><mml:mo>*</mml:mo></mml:msup><mml:mo lspace="2.5pt" rspace="2.5pt" stretchy="false">|</mml:mo><mml:mi>W</mml:mi></mml:mrow><mml:mo stretchy="false">]</mml:mo></mml:mrow></mml:math></inline-formula> as required. Note that each <inline-formula><mml:math id="inf114"><mml:mrow><mml:mrow><mml:mrow><mml:mrow><mml:msub><mml:mi>t</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mi>b</mml:mi><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:msub><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:msubsup><mml:mi>x</mml:mi><mml:mi>h</mml:mi><mml:mo>*</mml:mo></mml:msubsup><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow><mml:mo>,</mml:mo><mml:mi>h</mml:mi></mml:mrow><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mo>,</mml:mo><mml:mrow><mml:mi mathvariant="normal">…</mml:mi><mml:mo>,</mml:mo><mml:mi>H</mml:mi></mml:mrow></mml:mrow></mml:math></inline-formula> is a sample from the joint predictive distribution of the complete surface of <inline-formula><mml:math id="inf115"><mml:mrow><mml:mi>T</mml:mi><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mi>x</mml:mi><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:math></inline-formula> over the whole of the region of interest and can therefore be used to make inferences about spatially aggregated properties of <inline-formula><mml:math id="inf116"><mml:mrow><mml:mi>T</mml:mi><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mi>x</mml:mi><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:math></inline-formula> if required.</p></sec><sec id="s2-6"><title>Data and code accessibility</title><p>Data and code used in this analysis are publicly available at <ext-link ext-link-type="uri" xlink:href="https://github.com/maxeyre/Rattiness-infection-framework">https://github.com/maxeyre/Rattiness-infection-framework</ext-link>, (copy archived at <ext-link ext-link-type="uri" xlink:href="https://archive.softwareheritage.org/swh:1:dir:a43c0bc1a492da511e26455350e63ba50495be33;origin=https://github.com/maxeyre/rattiness-infection-framework;visit=swh:1:snp:afddd068ec888b2a78d6c1339a3ef7b203b2050d;anchor=swh:1:rev:e7953d38269ce97221dbdd83c0be2c65d92dff40">swh:1:rev:e7953d38269ce97221dbdd83c0be2c65d92dff40</ext-link>, <xref ref-type="bibr" rid="bib32">Eyre, 2022</xref>) and have been published (<xref ref-type="bibr" rid="bib31">Eyre et al., 2021</xref>). However, household coordinates and valley ID have been removed from the human data to ensure participant anonymity. The analysis was conducted using R (<xref ref-type="bibr" rid="bib59">R Development Core Team, 2016</xref>) and the following packages: tidyverse (<xref ref-type="bibr" rid="bib67">Wickham, 2017</xref>), mgcv (<xref ref-type="bibr" rid="bib69">Wood and Wood, 2015</xref>), PrevMap (<xref ref-type="bibr" rid="bib36">Giorgi and Diggle, 2017</xref>), MuMIn (<xref ref-type="bibr" rid="bib3">Barton, 2020</xref>), lme4 (<xref ref-type="bibr" rid="bib4">Bates et al., 2007</xref>), and statmod (<xref ref-type="bibr" rid="bib64">Smyth et al., 2021</xref>). We also include a step-by-step explanation of the model building process to guide future users of the rattiness-infection framework in 'Appendix 8'.</p></sec></sec><sec id="s3" sec-type="results"><title>Results</title><sec id="s3-1"><title>Study overview</title><p>In Pau da Lima, we identified 3179 eligible residents using a baseline community census, household visits and through other members of the household. Of these, 2018 (63.4%) individuals consented to join the study and provided a blood sample in the first serosurvey (August-October 2014). As a result of loss to follow-up, only 1401 (69.4%) of these participants (from 669 households) completed the second serosurvey (January-April 2015). Individuals were lost to follow-up because they could not be found after at least five attempts (44.4%), had moved out of the study area (31.1%) or did not wish to provide a second blood sample (19.8%). An overview of participant recruitment is provided in <xref ref-type="fig" rid="fig3">Figure 3</xref>. Individuals lost to follow-up were similar in age to those who remained in the study cohort (mean 29.0 and 28.8 years old, respectively, t-value <inline-formula><mml:math id="inf117"><mml:mrow><mml:mi/><mml:mo>=</mml:mo><mml:mrow><mml:mo>-</mml:mo><mml:mn>0.37</mml:mn></mml:mrow></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="inf118"><mml:mrow><mml:mrow><mml:mi>d</mml:mi><mml:mo>⁢</mml:mo><mml:mi>f</mml:mi></mml:mrow><mml:mo>=</mml:mo><mml:mn>1288.5</mml:mn></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="inf119"><mml:mrow><mml:mi>p</mml:mi><mml:mo>=</mml:mo><mml:mn>0.7</mml:mn></mml:mrow></mml:math></inline-formula>) but were more likely to be male (49.8% male compared to 42.6%, <inline-formula><mml:math id="inf120"><mml:mrow><mml:msup><mml:mi>χ</mml:mi><mml:mn>2</mml:mn></mml:msup><mml:mo>=</mml:mo><mml:mn>8.5</mml:mn></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="inf121"><mml:mrow><mml:mrow><mml:mi>d</mml:mi><mml:mo>⁢</mml:mo><mml:mi>f</mml:mi></mml:mrow><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="inf122"><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mrow><mml:mi>p</mml:mi><mml:mo>&lt;</mml:mo><mml:mn>0.01</mml:mn></mml:mrow></mml:mstyle></mml:math></inline-formula>). A full description of the study cohort is included in <xref ref-type="table" rid="app5table1">Appendix 5—table 1</xref>.</p><fig id="fig3" position="float"><label>Figure 3.</label><caption><title>The study participant flow chart in line with the STROBE (Strengthening the Reporting of Observational Studies in Epidemiology) statement (<ext-link ext-link-type="uri" xlink:href="http://www.strobestatement.org">http://www.strobestatement.org</ext-link>).</title></caption><graphic mimetype="image" mime-subtype="tiff" xlink:href="elife-73120-fig3-v4.tif"/></fig><p>Between the two serosurveys there was serological evidence of 72 leptospiral infections in the cohort, with an overall infection rate of 51.4 (95%CI 40.4, 64.2) infections per 1,000 follow-up events. Valleys 2 and 3 had high estimated infection rates with 66.4 (95%CI 47.3, 90.2) infections per 1000 follow-up events and 49.6 (95%CI 33.6, 69.9) infections per 1000 follow-up events, respectively, compared to 23.2 (95%CI 9.2, 46.9) infections per 1000 follow-up events in Valley 1. The number of infected participants in each household are mapped in <xref ref-type="fig" rid="fig4">Figure 4</xref> - panel A, with relative elevation shown for reference in <xref ref-type="fig" rid="fig4">Figure 4</xref> - panel B.</p><fig id="fig4" position="float"><label>Figure 4.</label><caption><title>Household infection and elevation maps.</title><p>(<bold>A</bold>) Map of participant household locations with the number of leptospiral infections in each household marked (grey circle - no infections; orange square - 1 infection; red diamond - 2 infections; pink triangle - 3 infections) and contours marking low, medium, and high relative elevation category; (<bold>B</bold>) Elevation (metres) relative to the bottom of the valley with contours marking low, medium, and high relative elevation levels.</p></caption><graphic mimetype="image" mime-subtype="tiff" xlink:href="elife-73120-fig4-v4.tif"/></fig><p>In the rat ecology study a rat was captured in 129 (9.0%) out of 1,512 trapping-days, 263 (37.4%) out of 703 track plate days had at least one positive plate and 28.5%, 19.7%, and 25.9% of the 580 sampled locations had at least one sign of active burrows, faecal droppings and trails, respectively.</p></sec><sec id="s3-2"><title>Exploratory analysis and model selection</title><p>The results from the exploratory multivariable analysis of rattiness are shown in <xref ref-type="table" rid="table1">Table 1</xref>. The linear splines used were informed by the functional forms shown in <xref ref-type="fig" rid="app1fig1">Appendix 1—figure 1</xref>. The relationship between rattiness and relative elevation demonstrates a trade-off between the high availability of food sources at the bottom of the valley and high risk of flooding which prevents the establishment of burrows. In the lowest elevation areas (0–8 m above the bottom of the valley), relative elevation and rattiness were positively associated with an increase of 0.04 (95%CI 0.00, 0.07) rattiness units per 1 m; when interpreting the magnitude of effect estimates note that, by definition, rattiness is defined so as to have variance one. Rattiness then peaked at an elevation of 8 m before declining with increasing elevation by 0.04 (95%CI –0.09, 0.01) units until an elevation of 22 m. Rattiness started to increase again above this elevation by 0.06 (95%CI 0.00, 0.10) units per metre. Rattiness decreased with increasing distance from large refuse piles, a source of food and harbourage, by 0.07 (95%CI −0.13,–0.01) units per 10 m distance until a distance of 50 m, beyond which there was a smaller increase in rattiness of 0.02 (95%CI –0.05, 0.09) per 10 m. Impervious land cover (defined as the proportion of the area within a 30 m radius around each sampling location classified as pavement or building) was negatively associated with rattiness, decreasing by –0.05 (95%CI −0.08,–0.01) units for every 10% increase in impervious cover.</p><table-wrap id="table1" position="float"><label>Table 1.</label><caption><title>Multivariable linear regression analysis of predictors for rattiness (note that rattiness is a unit-variance random variable when interpreting the magnitude of effect estimates).</title></caption><table frame="hsides" rules="groups"><thead><tr><th align="left" valign="top">Variable</th><th align="left" valign="top">Estimate (95% CI) <xref ref-type="table-fn" rid="table1fn1">*</xref></th></tr></thead><tbody><tr><td align="left" valign="top">Relative elevation (per 1 m increase)<sup><xref ref-type="table-fn" rid="table1fn2">†</xref></sup></td><td align="left" valign="top"/></tr><tr><td align="char" char="ndash" valign="top">0–8 m</td><td align="char" char="." valign="top">0.04 (0.00, 0.07)</td></tr><tr><td align="char" char="ndash" valign="top">8–22 m</td><td align="char" char="." valign="top">–0.04 (-0.09, 0.01)</td></tr><tr><td align="char" char="." valign="top">&gt;22 m</td><td align="char" char="." valign="top">0.06 (0.00, 0.10)</td></tr><tr><td align="left" valign="top">Distance to large refuse piles (per 10 m increase)<sup><xref ref-type="table-fn" rid="table1fn2">†</xref></sup></td><td align="left" valign="top"/></tr><tr><td align="char" char="ndash" valign="top">0–50 m</td><td align="char" char="." valign="top">–0.07 (-0.13,–0.01)</td></tr><tr><td align="char" char="." valign="top">&gt;50 m</td><td align="char" char="." valign="top">0.02 (-0.05, 0.09)</td></tr><tr><td align="left" valign="top">Impervious land cover (per 10% increase)</td><td align="char" char="." valign="top">–0.05 (-0.08,–0.01)</td></tr></tbody></table><table-wrap-foot><fn id="table1fn1"><label>*</label><p>CI, Confidence interval.</p></fn><fn id="table1fn2"><label>†</label><p>The effects of relative elevation and distance to refuse are modelled as broken linear models with transitions at 8m and 22m, and 50m, respectively. This was informed by the relationship described by Generalized Additive Modelling in <xref ref-type="fig" rid="app1fig1">Appendix 1—figure 1</xref>.</p></fn></table-wrap-foot></table-wrap><p>In the community cohort data, the univariable analysis identified several risk factors that increased a resident’s risk of leptospiral infection (<xref ref-type="table" rid="table2">Table 2</xref>). Variables in two of the four domains (demographic and social status and behavioural exposures) had estimated effect sizes with 95% confidence intervals that did not include an odds ratio of one (statistically significant at the conventional 5% level). Within the demographic and social status domain, risk of infection increased with age and was found to be higher for male participants and those living in Valleys 2 and 3. In the behavioural exposures domain, participants who had had frequent contact with floodwater in the last six months were more likely to be infected. Two individuals were excluded from the multivariable analysis (n=1399) because of missing data for the floodwater exposure survey question.</p><table-wrap id="table2" position="float"><label>Table 2.</label><caption><title>Univariable mixed effects logistic regression analysis of human risk factors for leptospiral infection.</title></caption><table frame="hsides" rules="groups"><thead><tr><th align="left" valign="bottom">Variable</th><th align="left" valign="bottom">OR (95% CI)<xref ref-type="table-fn" rid="table2fn1">*</xref></th><th align="left" valign="bottom">aOR (95% CI)<xref ref-type="table-fn" rid="table2fn1">*</xref></th></tr></thead><tbody><tr><td align="left" valign="bottom"><bold>Demographic and social status</bold></td><td align="left" valign="bottom"/><td align="left" valign="bottom"/></tr><tr><td align="left" valign="bottom">Age (per year)<sup><xref ref-type="table-fn" rid="table2fn2">†</xref></sup></td><td align="left" valign="bottom"/><td align="left" valign="bottom"/></tr><tr><td align="char" char="ndash" valign="bottom"> 0–30 years old</td><td align="char" char="." valign="bottom">1.08 (1.03, 1.13)</td><td align="char" char="." valign="bottom">1.09 (1.04, 1.15)</td></tr><tr><td align="char" char="." valign="bottom"> &gt;30 years old</td><td align="char" char="." valign="bottom">1.02 (0.96, 1.09)</td><td align="char" char="." valign="bottom">1.02 (0.95, 1.08)</td></tr><tr><td align="left" valign="bottom">Male gender</td><td align="char" char="." valign="bottom">2.22 (1.31, 3.85)</td><td align="char" char="." valign="bottom">2.78 (1.56, 4.96)</td></tr><tr><td align="left" valign="bottom">Daily per capita household income (US$/day)</td><td align="char" char="." valign="bottom">1.01 (0.89, 1.11)</td><td align="char" char="." valign="bottom">0.92 (0.80, 1.05)</td></tr><tr><td align="left" valign="bottom">Valley</td><td align="left" valign="bottom"/><td align="left" valign="bottom"/></tr><tr><td align="char" char="." valign="bottom"> 1</td><td align="left" valign="bottom">REF</td><td align="left" valign="bottom">REF</td></tr><tr><td align="char" char="." valign="bottom"> 2</td><td align="char" char="." valign="bottom">3.35 (1.33, 10.37)</td><td align="char" char="." valign="bottom">3.52 (1.23, 10.05)</td></tr><tr><td align="char" char="." valign="bottom"> 3</td><td align="char" char="." valign="bottom">2.39 (0.93, 7.38)</td><td align="char" char="." valign="bottom">2.53 (0.88, 7.27)</td></tr><tr><td align="left" valign="bottom">Adult illiteracy</td><td align="char" char="." valign="bottom">1.34 (0.61, 2.79)</td><td align="char" char="." valign="bottom">0.66 (0.29, 1.49)</td></tr><tr><td align="left" valign="bottom">Education (per year of education)<sup><xref ref-type="table-fn" rid="table2fn2">†</xref></sup></td><td align="left" valign="bottom"/><td align="left" valign="bottom"/></tr><tr><td align="char" char="ndash" valign="bottom"> 0–5 years</td><td align="char" char="." valign="bottom">1.05 (0.85, 1.32)</td><td align="char" char="." valign="bottom">1.14 (0.91, 1.44)</td></tr><tr><td align="char" char="." valign="bottom"> &gt;5 years</td><td align="char" char="." valign="bottom">0.96 (0.73, 1.27)</td><td align="char" char="." valign="bottom">0.96 (0.75, 1.26)</td></tr><tr><td align="left" valign="bottom"><bold>Household environment</bold></td><td align="left" valign="bottom"/><td align="left" valign="bottom"/></tr><tr><td align="left" valign="bottom">Impervious land cover (per 10% increase)</td><td align="char" char="." valign="bottom">0.87 (0.76, 0.99)</td><td align="char" char="." valign="bottom">0.82 (0.71, 0.95)</td></tr><tr><td align="left" valign="bottom">Relative elevation (per 1 m increase)<sup><xref ref-type="table-fn" rid="table2fn2">†</xref></sup></td><td align="left" valign="bottom"/><td align="left" valign="bottom"/></tr><tr><td align="char" char="ndash" valign="bottom"> 0–20 m</td><td align="char" char="." valign="bottom">0.94 (0.89, 0.99)</td><td align="char" char="." valign="bottom">0.93 (0.88, 0.99)</td></tr><tr><td align="char" char="." valign="bottom"> &gt;20 m</td><td align="char" char="." valign="bottom">1.12 (0.98, 1.29)</td><td align="char" char="." valign="bottom">1.12 (0.97, 1.29)</td></tr><tr><td align="left" valign="bottom">Relative elevation category <sup><xref ref-type="table-fn" rid="table2fn3">‡</xref></sup></td><td align="left" valign="bottom"/><td align="left" valign="bottom"/></tr><tr><td align="left" valign="bottom"> Low (0–6.7 m)</td><td align="left" valign="bottom">REF</td><td align="left" valign="bottom">REF</td></tr><tr><td align="left" valign="bottom"> Medium (6.7–15.6 m)</td><td align="char" char="." valign="bottom">0.72 (0.37, 1.39)</td><td align="char" char="." valign="bottom">0.72 (0.36, 1.44)</td></tr><tr><td align="left" valign="bottom"> High (&gt;15.6 m)</td><td align="char" char="." valign="bottom">0.58 (0.27, 1.20)</td><td align="char" char="." valign="bottom">0.51 (0.23, 1.11)</td></tr><tr><td align="left" valign="bottom">Open sewer within 10 m</td><td align="char" char="." valign="bottom">1.60 (0.85, 3.17)</td><td align="char" char="." valign="bottom">1.69 (0.85, 3.37)</td></tr><tr><td align="left" valign="bottom">Unprotected from open sewer</td><td align="char" char="." valign="bottom">1.00 (0.55, 1.79)</td><td align="char" char="." valign="bottom">1.11 (0.61, 2.03)</td></tr><tr><td align="left" valign="bottom">Live on hillside</td><td align="char" char="." valign="bottom">0.99 (0.52, 1.86)</td><td align="char" char="." valign="bottom">0.89 (0.46, 1.71)</td></tr><tr><td align="left" valign="bottom"><bold>Occupational exposures</bold></td><td align="left" valign="bottom"/><td align="left" valign="bottom"/></tr><tr><td align="left" valign="bottom">Work in construction <sup><xref ref-type="table-fn" rid="table2fn4">§</xref></sup></td><td align="char" char="." valign="bottom">1.36 (0.51, 3.21)</td><td align="char" char="." valign="bottom">0.62 (0.23, 1.67)</td></tr><tr><td align="left" valign="bottom">Work as travelling salesperson <sup><xref ref-type="table-fn" rid="table2fn4">§</xref></sup></td><td align="char" char="." valign="bottom">4.81 (1.12, 18.78)</td><td align="char" char="." valign="bottom">2.97 (0.71, 12.40)</td></tr><tr><td align="left" valign="bottom">Work in refuse collection <sup><xref ref-type="table-fn" rid="table2fn4">§</xref></sup></td><td align="char" char="." valign="bottom">2.95 (1.04, 7.89)</td><td align="char" char="." valign="bottom">1.57 (0.56, 4.42)</td></tr><tr><td align="left" valign="bottom">Work involves contact with floodwater <sup><xref ref-type="table-fn" rid="table2fn4">§</xref></sup></td><td align="char" char="." valign="bottom">0.89 (0.04, 5.61)</td><td align="char" char="." valign="bottom">0.52 (0.05, 4.96)</td></tr><tr><td align="left" valign="bottom">Work involves contact with sewer water <sup><xref ref-type="table-fn" rid="table2fn4">§</xref></sup></td><td align="char" char="." valign="bottom">3.61 (0.45, 20.38)</td><td align="char" char="." valign="bottom">1.92 (0.29, 12.80)</td></tr><tr><td align="left" valign="bottom"><bold>Behavioural exposures</bold></td><td align="left" valign="bottom"/><td align="left" valign="bottom"/></tr><tr><td align="left" valign="bottom">Contact with floodwater in last 6 months</td><td align="left" valign="bottom"/><td align="left" valign="bottom"/></tr><tr><td align="left" valign="bottom"> Never/rarely</td><td align="left" valign="bottom">REF</td><td align="left" valign="bottom">REF</td></tr><tr><td align="left" valign="bottom"> Sometimes</td><td align="char" char="." valign="bottom">0.61 (0.27, 1.25)</td><td align="char" char="." valign="bottom">0.66 (0.30, 1.47)</td></tr><tr><td align="left" valign="bottom"> Frequently</td><td align="char" char="." valign="bottom">2.14 (0.91, 4.94)</td><td align="char" char="." valign="bottom">2.84 (1.18, 6.86)</td></tr><tr><td align="left" valign="bottom">Contact with sewer water in last 6 months</td><td align="left" valign="bottom"/><td align="left" valign="bottom"/></tr><tr><td align="left" valign="bottom"> Never/rarely</td><td align="left" valign="bottom">REF</td><td align="left" valign="bottom">REF</td></tr><tr><td align="left" valign="bottom"> Sometimes</td><td align="char" char="." valign="bottom">0.55 (0.19, 1.31)</td><td align="char" char="." valign="bottom">0.67 (0.25, 1.78)</td></tr><tr><td align="left" valign="bottom"> Frequently</td><td align="char" char="." valign="bottom">1.42 (0.51, 3.50)</td><td align="char" char="." valign="bottom">1.63 (0.61, 4.41)</td></tr></tbody></table><table-wrap-foot><fn id="table2fn1"><label>*</label><p>OR, Odds ratio; aOR, Adjusted odds ratio; CI, Confidence interval; REF, Reference level.</p></fn><fn id="table2fn2"><label>†</label><p>The effect of age, education and relative elevation are modelled as broken linear models with transitions at 30 years old, 5 years of education and an elevation of 20m. This was informed by the relationship described by Generalized Additive Modelling (<xref ref-type="fig" rid="app1fig2">Appendix 1—figure 2</xref>).</p></fn><fn id="table2fn3"><label>‡</label><p>Relative elevation category consists of three discrete groups representing three regions with different floodingrisk profiles.</p></fn><fn id="table2fn4"><label>§</label><p>Binary variable with reference category of ‘no occupational exposure’.</p></fn></table-wrap-foot></table-wrap><p>In the exploratory results from the multivariable model there was strong evidence of an interaction between rattiness and household relative elevation category on human infection risk (see <xref ref-type="table" rid="app3table1">Appendix 3—table 1</xref> for all parameter estimates for this model). In the high elevation category area, a unit increase in mean predicted rattiness at the household location was estimated to increase the odds of infection by 6.92 (95%CI 1.88, 25.47). In contrast, in the low and medium elevation category areas there was no evidence of a relationship between rattiness and infection risk, as shown in <xref ref-type="fig" rid="fig5">Figure 5</xref>. Consequently, this interaction effect was also included in the rattiness-infection joint model.</p><fig id="fig5" position="float"><label>Figure 5.</label><caption><title>Predicted relationship between rattiness and infection risk from the multivariable mixed effects logistic regression demonstrating evidence of an interaction with relative elevation category (low, medium and high).</title><p>Shown on the log-odds scale with shaded areas corresponding to 95% confidence intervals.</p></caption><graphic mimetype="image" mime-subtype="tiff" xlink:href="elife-73120-fig5-v4.tif"/></fig><p>The explanatory variables selected in the rat and human multivariable analyses were then entered into the full rattiness-infection joint model with the functional forms included in <xref ref-type="table" rid="table1">Table 1</xref>. To test for residual spatial correlation in the human infection data after controlling for explanatory variables and rattiness, we fitted the joint model with an additional spatial Gaussian process in the human infection linear predictor. The estimated value for the scale of spatial correlation for this Gaussian process was less than 1 m and indistinguishable from household-level variation. We consequently fitted the joint model specified in <xref ref-type="disp-formula" rid="equ4">Equation 3</xref> which assumes that there is no residual spatial correlation in the human infection data.</p></sec><sec id="s3-3"><title>Joint rattiness-infection model</title><p>Human infection risk factors, rattiness predictors and other model parameters estimated using the joint rattiness-infection model are shown in <xref ref-type="table" rid="table3">Table 3</xref>. Infection risk was strongly associated with age, with an individual experiencing an increased odds of infection of 1.09 (95%CI 1.04, 1.19) for every year of life up until 30 years of age, and 1.02 (95%CI 0.92, 1.09) for each additional year thereafter. Male participants were more likely to be infected than female participants (OR 2.69 95% CI 1.58, 5.89). Compared with individuals living in Valley 1, those living in Valley 2 had a higher estimated odds of infection (OR 2.91 95% CI 1.03, 20.82). Individuals living in the medium (OR 0.77 95% CI 0.31, 1.66) and high (OR 0.67 95% CI 0.11, 1.64) elevation areas had a lower estimated odds of infection relative to those living in the low relative elevation category area where there are open sewers and flooding risk is higher, however these confidence intervals included an odds ratio of one (not statistically significant at the conventional 5% level).</p><table-wrap id="table3" position="float"><label>Table 3.</label><caption><title>Parameter estimates for the full joint rattiness-infection model.</title></caption><table frame="hsides" rules="groups"><thead><tr><th align="left" valign="bottom">Parameter</th><th align="left" valign="bottom">Estimate (95% CI)</th></tr></thead><tbody><tr><td align="left" valign="bottom"><bold>Human infection risk factors</bold></td><td align="left" valign="bottom">OR</td></tr><tr><td align="left" valign="bottom">Age (per year)</td><td align="left" valign="bottom"/></tr><tr><td align="char" char="ndash" valign="bottom"> 0–30 years old</td><td align="char" char="." valign="bottom">1.09 (1.04, 1.19)</td></tr><tr><td align="char" char="." valign="bottom"> &gt;30 years old</td><td align="char" char="." valign="bottom">1.02 (0.92, 1.09)</td></tr><tr><td align="left" valign="bottom">Male gender</td><td align="char" char="." valign="bottom">2.69 (1.58, 5.89)</td></tr><tr><td align="left" valign="bottom">Daily per capita household income (US$/day)</td><td align="char" char="." valign="bottom">0.93 (0.74, 1.05)</td></tr><tr><td align="left" valign="bottom">Valley</td><td align="left" valign="bottom"/></tr><tr><td align="char" char="." valign="bottom"> 1</td><td align="left" valign="bottom">REF</td></tr><tr><td align="char" char="." valign="bottom"> 2</td><td align="char" char="." valign="bottom">2.91 (1.03, 20.82)</td></tr><tr><td align="char" char="." valign="bottom"> 3</td><td align="char" char="." valign="bottom">2.28 (0.86, 14.00)</td></tr><tr><td align="left" valign="bottom">Relative elevation category</td><td align="left" valign="bottom"/></tr><tr><td align="left" valign="bottom"> Low (0–6.7 m)</td><td align="left" valign="bottom">REF</td></tr><tr><td align="left" valign="bottom"> Medium (6.7–15.6 m)</td><td align="char" char="." valign="bottom">0.77 (0.31, 1.66)</td></tr><tr><td align="left" valign="bottom"> High (&gt;15.6 m)</td><td align="char" char="." valign="bottom">0.67 (0.11, 1.64)</td></tr><tr><td align="left" valign="bottom">Work as travelling salesperson</td><td align="char" char="." valign="bottom">3.16 (0.38, 20.57)</td></tr><tr><td align="left" valign="bottom">Contact with floodwater in last 6 months</td><td align="left" valign="bottom"/></tr><tr><td align="left" valign="bottom"> Never/rarely</td><td align="left" valign="bottom">REF</td></tr><tr><td align="left" valign="bottom"> Sometimes</td><td align="char" char="." valign="bottom">0.62 (0.18, 1.39)</td></tr><tr><td align="left" valign="bottom"> Frequently</td><td align="char" char="." valign="bottom">2.47 (0.67, 7.41)</td></tr><tr><td align="left" valign="bottom">Rattiness (per unit rattiness)</td><td align="left" valign="bottom"/></tr><tr><td align="left" valign="bottom"> <inline-formula><mml:math id="inf123"><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mrow><mml:msub><mml:mi>ξ</mml:mi><mml:mrow><mml:mi>l</mml:mi><mml:mi>o</mml:mi><mml:mi>w</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mstyle></mml:math></inline-formula></td><td align="char" char="." valign="bottom">1.14 (1.05, 1.53)</td></tr><tr><td align="left" valign="bottom"> <inline-formula><mml:math id="inf124"><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mrow><mml:msub><mml:mi>ξ</mml:mi><mml:mrow><mml:mi>m</mml:mi><mml:mi>e</mml:mi><mml:mi>d</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mstyle></mml:math></inline-formula></td><td align="char" char="." valign="bottom">1.25 (1.08, 1.74)</td></tr><tr><td align="left" valign="bottom"> <inline-formula><mml:math id="inf125"><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mrow><mml:msub><mml:mi>ξ</mml:mi><mml:mrow><mml:mi>h</mml:mi><mml:mi>i</mml:mi><mml:mi>g</mml:mi><mml:mi>h</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mstyle></mml:math></inline-formula></td><td align="char" char="." valign="bottom">3.27 (1.68, 19.07)</td></tr><tr><td align="left" valign="bottom"><inline-formula><mml:math id="inf126"><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mrow><mml:msup><mml:mi>σ</mml:mi><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:mstyle></mml:math></inline-formula>(variance of household-level random effect)</td><td align="char" char="." valign="bottom">1.36 (0.23, 5.35)</td></tr><tr><td align="left" valign="bottom"><bold>Rattiness variables</bold></td><td align="left" valign="bottom"/></tr><tr><td align="left" valign="bottom">Relative elevation (per 1 m increase)<sup>2</sup></td><td align="left" valign="bottom"/></tr><tr><td align="char" char="ndash" valign="bottom"> 0–8 m</td><td align="char" char="." valign="bottom">0.05 (-0.01, 0.13)</td></tr><tr><td align="char" char="ndash" valign="bottom"> 8–22 m</td><td align="char" char="." valign="bottom">–0.06 (-0.16, 0.02)</td></tr><tr><td align="char" char="." valign="bottom"> &gt;22 m</td><td align="char" char="." valign="bottom">0.05 (-0.03, 0.14)</td></tr><tr><td align="left" valign="bottom">Distance to large refuse piles (per 10 m increase)<sup>3</sup></td><td align="left" valign="bottom"/></tr><tr><td align="char" char="ndash" valign="bottom"> 0–50 m</td><td align="char" char="." valign="bottom">–0.10 (-0.21, 0.02)</td></tr><tr><td align="char" char="." valign="bottom"> &gt;50 m</td><td align="char" char="." valign="bottom">0.03 (-0.11, 0.17)</td></tr><tr><td align="left" valign="bottom">Impervious land cover (per 10% increase)</td><td align="char" char="." valign="bottom">–0.07 (-0.14,–0.01)</td></tr><tr><td align="left" valign="bottom"><bold>Rattiness parameters</bold></td><td align="left" valign="bottom"/></tr><tr><td align="left" valign="bottom"><inline-formula><mml:math id="inf127"><mml:msub><mml:mi>α</mml:mi><mml:mrow><mml:mi>t</mml:mi><mml:mo>⁢</mml:mo><mml:mi>r</mml:mi><mml:mo>⁢</mml:mo><mml:mi>a</mml:mi><mml:mo>⁢</mml:mo><mml:mi>p</mml:mi><mml:mo>⁢</mml:mo><mml:mi>s</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula></td><td align="char" char="." valign="bottom">–2.94 (-3.27,–2.65)</td></tr><tr><td align="left" valign="bottom"><inline-formula><mml:math id="inf128"><mml:msub><mml:mi>α</mml:mi><mml:mrow><mml:mi>p</mml:mi><mml:mo>⁢</mml:mo><mml:mi>l</mml:mi><mml:mo>⁢</mml:mo><mml:mi>a</mml:mi><mml:mo>⁢</mml:mo><mml:mi>t</mml:mi><mml:mo>⁢</mml:mo><mml:mi>e</mml:mi><mml:mo>⁢</mml:mo><mml:mi>s</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula></td><td align="char" char="." valign="bottom">–2.06 (-2.50,–1.74)</td></tr><tr><td align="left" valign="bottom"><inline-formula><mml:math id="inf129"><mml:msub><mml:mi>α</mml:mi><mml:mrow><mml:mi>b</mml:mi><mml:mo>⁢</mml:mo><mml:mi>u</mml:mi><mml:mo>⁢</mml:mo><mml:mi>r</mml:mi><mml:mo>⁢</mml:mo><mml:mi>r</mml:mi><mml:mo>⁢</mml:mo><mml:mi>o</mml:mi><mml:mo>⁢</mml:mo><mml:mi>w</mml:mi><mml:mo>⁢</mml:mo><mml:mi>s</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula></td><td align="char" char="." valign="bottom">–1.41 (-1.67,–1.16)</td></tr><tr><td align="left" valign="bottom"><inline-formula><mml:math id="inf130"><mml:msub><mml:mi>α</mml:mi><mml:mrow><mml:mi>f</mml:mi><mml:mo>⁢</mml:mo><mml:mi>a</mml:mi><mml:mo>⁢</mml:mo><mml:mi>e</mml:mi><mml:mo>⁢</mml:mo><mml:mi>c</mml:mi><mml:mo>⁢</mml:mo><mml:mi>e</mml:mi><mml:mo>⁢</mml:mo><mml:mi>s</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula></td><td align="char" char="." valign="bottom">–2.82 (-3.83,–2.32)</td></tr><tr><td align="left" valign="bottom"><inline-formula><mml:math id="inf131"><mml:msub><mml:mi>α</mml:mi><mml:mrow><mml:mi>t</mml:mi><mml:mo>⁢</mml:mo><mml:mi>r</mml:mi><mml:mo>⁢</mml:mo><mml:mi>a</mml:mi><mml:mo>⁢</mml:mo><mml:mi>i</mml:mi><mml:mo>⁢</mml:mo><mml:mi>l</mml:mi><mml:mo>⁢</mml:mo><mml:mi>s</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula></td><td align="char" char="." valign="bottom">–2.22 (-2.96,–1.76)</td></tr><tr><td align="left" valign="bottom"><inline-formula><mml:math id="inf132"><mml:msub><mml:mi>σ</mml:mi><mml:mrow><mml:mi>t</mml:mi><mml:mo>⁢</mml:mo><mml:mi>r</mml:mi><mml:mo>⁢</mml:mo><mml:mi>a</mml:mi><mml:mo>⁢</mml:mo><mml:mi>p</mml:mi><mml:mo>⁢</mml:mo><mml:mi>s</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula></td><td align="char" char="." valign="bottom">0.72 (0.45, 0.97)</td></tr><tr><td align="left" valign="bottom"><inline-formula><mml:math id="inf133"><mml:msub><mml:mi>σ</mml:mi><mml:mrow><mml:mi>p</mml:mi><mml:mo>⁢</mml:mo><mml:mi>l</mml:mi><mml:mo>⁢</mml:mo><mml:mi>a</mml:mi><mml:mo>⁢</mml:mo><mml:mi>t</mml:mi><mml:mo>⁢</mml:mo><mml:mi>e</mml:mi><mml:mo>⁢</mml:mo><mml:mi>s</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula></td><td align="char" char="." valign="bottom">2.37 (2.05, 2.68)</td></tr><tr><td align="left" valign="bottom"><inline-formula><mml:math id="inf134"><mml:msub><mml:mi>σ</mml:mi><mml:mrow><mml:mi>b</mml:mi><mml:mo>⁢</mml:mo><mml:mi>u</mml:mi><mml:mo>⁢</mml:mo><mml:mi>r</mml:mi><mml:mo>⁢</mml:mo><mml:mi>r</mml:mi><mml:mo>⁢</mml:mo><mml:mi>o</mml:mi><mml:mo>⁢</mml:mo><mml:mi>w</mml:mi><mml:mo>⁢</mml:mo><mml:mi>s</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula></td><td align="char" char="." valign="bottom">1.28 (1.08, 1.45)</td></tr><tr><td align="left" valign="bottom"><inline-formula><mml:math id="inf135"><mml:msub><mml:mi>σ</mml:mi><mml:mrow><mml:mi>f</mml:mi><mml:mo>⁢</mml:mo><mml:mi>a</mml:mi><mml:mo>⁢</mml:mo><mml:mi>e</mml:mi><mml:mo>⁢</mml:mo><mml:mi>c</mml:mi><mml:mo>⁢</mml:mo><mml:mi>e</mml:mi><mml:mo>⁢</mml:mo><mml:mi>s</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula></td><td align="char" char="." valign="bottom">2.36 (1.80, 3.34)</td></tr><tr><td align="left" valign="bottom"><inline-formula><mml:math id="inf136"><mml:msub><mml:mi>σ</mml:mi><mml:mrow><mml:mi>t</mml:mi><mml:mo>⁢</mml:mo><mml:mi>r</mml:mi><mml:mo>⁢</mml:mo><mml:mi>a</mml:mi><mml:mo>⁢</mml:mo><mml:mi>i</mml:mi><mml:mo>⁢</mml:mo><mml:mi>l</mml:mi><mml:mo>⁢</mml:mo><mml:mi>s</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula></td><td align="char" char="." valign="bottom">2.43 (1.85, 3.12)</td></tr><tr><td align="left" valign="bottom"><inline-formula><mml:math id="inf137"><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mrow><mml:mi>ψ</mml:mi></mml:mrow></mml:mstyle></mml:math></inline-formula></td><td align="char" char="." valign="bottom">0.67 (0.29, 1.00)</td></tr><tr><td align="left" valign="bottom"><inline-formula><mml:math id="inf138"><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mrow><mml:mi>ϕ</mml:mi></mml:mrow></mml:mstyle></mml:math></inline-formula></td><td align="left" valign="bottom">9.23 (3.21, 18.24)</td></tr></tbody></table></table-wrap><p>Infection risk was positively associated with rattiness for households situated in all three levels of the relative elevation category variable. However, while the effect size (per unit increase in rattiness) was similar in the low (OR 1.14 95% CI 1.05, 1.53) and medium (OR 1.25 95% CI 1.08, 1.74) elevation areas, in the high elevation area the effect of increasing rattiness on infection risk was significantly stronger (OR 3.27 95% CI 1.68, 19.07). This interaction effect between rattiness and household relative elevation category on human infection risk was confirmed with a test for evidence against the null hypothesis that <inline-formula><mml:math id="inf139"><mml:mrow><mml:msub><mml:mi>ξ</mml:mi><mml:mrow><mml:mi>l</mml:mi><mml:mo>⁢</mml:mo><mml:mi>o</mml:mi><mml:mo>⁢</mml:mo><mml:mi>w</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mi>ξ</mml:mi><mml:mrow><mml:mi>m</mml:mi><mml:mo>⁢</mml:mo><mml:mi>e</mml:mi><mml:mo>⁢</mml:mo><mml:mi>d</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mi>ξ</mml:mi><mml:mrow><mml:mi>h</mml:mi><mml:mo>⁢</mml:mo><mml:mi>i</mml:mi><mml:mo>⁢</mml:mo><mml:mi>g</mml:mi><mml:mo>⁢</mml:mo><mml:mi>h</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> (<inline-formula><mml:math id="inf140"><mml:mrow><mml:mi>p</mml:mi><mml:mo>=</mml:mo><mml:mn>0.026</mml:mn></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="inf141"><mml:mrow><mml:msup><mml:mi>χ</mml:mi><mml:mn>2</mml:mn></mml:msup><mml:mo>=</mml:mo><mml:mn>7.33</mml:mn></mml:mrow></mml:math></inline-formula>, <inline-formula><mml:math id="inf142"><mml:mrow><mml:mrow><mml:mi>d</mml:mi><mml:mo>⁢</mml:mo><mml:mi>f</mml:mi></mml:mrow><mml:mo>=</mml:mo><mml:mn>2</mml:mn></mml:mrow></mml:math></inline-formula>).</p><p>Parameter estimates for the rattiness variables were very similar to the estimates from the exploratory linear regression (<xref ref-type="table" rid="table1">Table 1</xref>), with a slightly higher effect size for the distance to refuse piles and land cover variables. There was evidence of small-scale spatial correlation in rattiness (<inline-formula><mml:math id="inf143"><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mrow><mml:mi>ϕ</mml:mi></mml:mrow></mml:mstyle></mml:math></inline-formula> = 9.23m 95% CI 3.21, 18.24 m) corresponding to a spatial correlation range (the distance at which the correlation reduces to 5%) of approximately 28 m. The estimate for <inline-formula><mml:math id="inf144"><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mrow><mml:mi>ψ</mml:mi></mml:mrow></mml:mstyle></mml:math></inline-formula> of about 0.67 (95%CI 0.29, 1.00) indicates that the majority of the unexplained variation in rattiness is spatially structured, with the remainder modelled as a nugget effect.</p></sec><sec id="s3-4"><title>Spatial prediction</title><p>There was heterogeneous spatial variation in predicted rattiness. The numerous small regions of high rattiness in <xref ref-type="fig" rid="fig6">Figure 6</xref> - panel A are indicative of the small-scale spatial correlation in the data. The low elevation areas in the central length of each valley (relative elevation is shown in <xref ref-type="fig" rid="fig6">Figure 6</xref> - panel E with the contours marking the low, medium and high elevation areas) had high mean predicted rattiness. High rattiness was also predicted in several high elevation areas, for example the northern tip of Valley 3 and several small hotspots along the three valley’s high elevation sides.</p><fig id="fig6" position="float"><label>Figure 6.</label><caption><title>Joint rattiness-infection model predictions.</title><p>(<bold>A</bold>) Mean predicted rattiness; (<bold>B</bold>) Mean predicted leptospiral infection risk for 30-year-old male participants with a household per capita income of USD$1 /day who never/rarely have contact with floodwater and do not work as a travelling salesperson; (<bold>C</bold>) lower 95% prediction interval for predicted infection risk; (<bold>D</bold>) upper 95% prediction interval for predicted infection risk.</p></caption><graphic mimetype="image" mime-subtype="tiff" xlink:href="elife-73120-fig6-v4.tif"/></fig><p>To illustrate the spatial variation in infection risk within the study area, prediction maps are shown in <xref ref-type="fig" rid="fig6">Figure 6</xref> - panel B for a 30-year-old male participant with a household per capita income of USD$1 /day who never or rarely had contact with floodwater in the previous six months and did not work as a travelling salesperson. Infection risk was low across most of Valley 1 (&lt;2.5%), with marginally higher average values found in the central low elevation area (2.5–5%). Risk was consistently higher across most of Valleys 2 and 3 (7.5–15%), with the effect of elevation on risk clearly visible. In areas with higher and more spatially heterogeneous predicted infection risk, for example in the central region of Valley 2, this was driven by high levels of predicted rattiness. The stronger estimated effect of rattiness on infection risk in higher elevation areas was particularly visible in Valleys 2 and 3, as seen in the three hotspots with risk reaching 20% and the moderate risk hotspots along the sides of both valleys. Prediction intervals were relatively narrow across most of the study area (<xref ref-type="fig" rid="fig6">Figure 6</xref> - panel C and <xref ref-type="fig" rid="fig6">Figure 6</xref> - panel D) with greater uncertainty in the high risk areas.</p></sec></sec><sec id="s4" sec-type="discussion"><title>Discussion</title><p>We developed and applied a novel framework for joint spatial modelling of disease reservoir abundance and human infection risk to a community-based cohort study and fine-scale rat ecology study. We found that higher levels of rattiness, our proxy for rat abundance, at the household location were associated with a higher risk of leptospiral infection for residents across the entire study area. Importantly, we found that a unit increase in rattiness in high elevation areas was associated with an almost three times higher odds ratio for infection than in low and medium elevation areas. To our knowledge, this is the first study to jointly model rodent abundance and human infection data for a rodent-borne zoonosis. The findings provide new insights into how the dominant mechanisms of <italic>Leptospira</italic> transmission within complex urban settings may vary over small distances, as a result of interactions between rats, the environment, geography, and local epidemiology.</p><p>The finding that rattiness was associated with infection risk indicates that the spatial distribution of rat populations was an important driver of transmission close to the household across the entire study area. This is consistent with a recent study investigating the predictive power of household rat infestation scores for human infection (<xref ref-type="bibr" rid="bib21">Costa et al., 2021</xref>). There was no residual spatial correlation in the infection data after accounting for rattiness in our analysis, possibly suggesting that previously unexplained spatial heterogeneity in risk could be driven by variation in rattiness (<xref ref-type="bibr" rid="bib40">Hagan et al., 2016</xref>). Our model also predicted high average rattiness across the low elevation areas where leptospiral transmission is high (<xref ref-type="bibr" rid="bib40">Hagan et al., 2016</xref>; <xref ref-type="bibr" rid="bib60">Reis et al., 2008</xref>). This supports the hypothesis that abundant rat populations are responsible for high levels of observed environmental contamination across these lower areas (<xref ref-type="bibr" rid="bib13">Casanovas-Massana et al., 2018</xref>; <xref ref-type="bibr" rid="bib14">Casanovas-Massana et al., 2022</xref>), and consequently increased infection risk.</p><p>The identified interaction between elevation and rattiness on infection risk suggests that relatively small changes in environment and topography can modify transmission pathways within an urban community. The weaker effect of rattiness on infection risk at low and medium elevation areas relative to high elevation areas may be explained by differences in their hydrological profiles. While high rat abundance in low and medium areas results in high leptospiral contamination, these areas are prone to high levels of water runoff and flooding. This disperses the pathogen across low elevation areas. The ability of leptospires to persist in the environment for weeks or months means that this process can significantly increase environmental risk in low elevation areas for long periods. This process disconnects shedding and infection events in space and time (<xref ref-type="bibr" rid="bib57">Plowright et al., 2017</xref>) and obscures the relationship between infection risk and rattiness in low and medium elevation households.</p><p>In contrast, high elevation areas have lower levels of water runoff and flooding due to improved drainage and sewage systems, and a smaller upstream catchment area for rainfall. Leptospires are consequently less likely to be washed away from the location at which they were shed, and environmental risk remains more localised and strongly associated with the spatial distribution of rats. This hypothesised role of hydrology in the aggregation and dispersal of leptospires (<xref ref-type="bibr" rid="bib57">Plowright et al., 2017</xref>) is supported by a recent study in low elevation areas of Pau da Lima which found that soil contamination was not associated with local rat activity (<xref ref-type="bibr" rid="bib62">Schneider et al., 2018</xref>). However, our finding that rattiness was associated with infection in low and medium elevation areas suggests that the spatial distribution of environmental risk in these areas is not entirely determined by water dispersal.</p><p>Interestingly, a previous study of surface waters in Pau da Lima found that the probability of a sample being positive for <italic>Leptospira</italic> was highest in low elevation areas and lowest in medium elevation areas, with no significant difference between low and high elevation areas (<xref ref-type="bibr" rid="bib13">Casanovas-Massana et al., 2018</xref>). This is consistent with our findings and suggests that there may be a ‘washing out’ of locally deposited leptospires in medium elevation areas but not in high elevation areas.</p><p>This has several implications for disease control strategies which aim to reduce environmental risk. Improving drainage systems at all elevation levels can reduce the dispersal of leptospires from high to low elevation areas. Closure of sewer systems, which generally run through low elevation areas, can protect local residents from exposure and reduce the introduction of additional contamination from upstream sewer water. Paving over soil surfaces can reduce the surface area over which leptospires can persist (<xref ref-type="bibr" rid="bib7">Bierque et al., 2020</xref>), reducing environmental risk further.</p><p>A reduction in the dispersal and accumulation of bacteria will result in more localised environmental risk, as was observed in the high elevation areas in this study. Higher risk will then be found in areas with a high abundance of infected rats. This may also reduce environmental exposure for rats, thereby lowering shedding rates and acting as a feedback loop into the <italic>Leptospira</italic> transmission cycle (<xref ref-type="bibr" rid="bib51">Minter et al., 2018</xref>). Given the limited and short-term impact of chemical rodenticide campaigns on Norway rat abundance in these settings (<xref ref-type="bibr" rid="bib26">de Masi et al., 2009</xref>), longer-term environment management strategies targeted at rattiness hotspots may also be needed to reduce the availability of key predictors of rattiness, such as large refuse piles and vegetation and soil land cover. Funding and political will for large-scale infrastructural interventions is often limited in marginalised urban settings and small-scale community-based interventions which target these mechanisms should be evaluated.</p><p>Transmission is dynamic in space and time and the alignment of conditions which enable spillover infection can vary over time (<xref ref-type="bibr" rid="bib57">Plowright et al., 2017</xref>). Our study was designed to explore the spatial variation in rattiness and infection risk in Pau da Lima during the driest period of the year, and it may not be representative of transmission mechanisms during the rainy season. There is some evidence, however, that this may not necessarily be the case, with two recent studies in Pau da Lima reporting low seasonal variation in both rat abundance (<xref ref-type="bibr" rid="bib55">Panti-May et al., 2016</xref>) and spatial infection risk patterns (<xref ref-type="bibr" rid="bib40">Hagan et al., 2016</xref>). Nonetheless, future studies across different time periods are needed to establish the role of rat abundance in <italic>Leptospira</italic> transmission.</p><p>In this study we used household location to link rattiness to an individual, under the assumption that the majority of their exposure occurs close to home. Given the spatially heterogeneous distribution of rattiness and environmental contamination (<xref ref-type="bibr" rid="bib13">Casanovas-Massana et al., 2018</xref>) within the community, future epidemiological studies of leptospirosis and zoonotic spillover could benefit from trying to pinpoint key sources of infection away from the household using GPS mobility data, as has been attempted in a small study previously (<xref ref-type="bibr" rid="bib54">Owers et al., 2018</xref>). The rattiness-infection framework could then be extended to model cumulative environmental exposure to the rattiness surface by integrating along a person’s trajectory as they move around the community.</p><p>Our framework did not account for disease dynamics within rat populations. Given that 80% of rats are estimated to be actively shedding <italic>Leptospira</italic> in Pau da Lima (<xref ref-type="bibr" rid="bib20">Costa et al., 2015b</xref>; <xref ref-type="bibr" rid="bib25">de Faria et al., 2008</xref>) and prevalence in rats is generally high in urban areas globally (<xref ref-type="bibr" rid="bib56">Pellizzaro et al., 2019</xref>; <xref ref-type="bibr" rid="bib17">Costa et al., 2014a</xref>; <xref ref-type="bibr" rid="bib8">Boey et al., 2019</xref>; <xref ref-type="bibr" rid="bib70">Yusof et al., 2019</xref>; <xref ref-type="bibr" rid="bib46">Krøjgaard et al., 2009</xref>), the use of rattiness as a proxy for rat shedding appears reasonable and it may be a useful proxy in other epidemiological studies. Despite this, non-shedding rats may be spatially clustered and future work would benefit from the collection of georeferenced rat infection data. For other zoonotic spillover systems where pathogen release does not occur at a high and homogeneous rate across the reservoir host population, accounting for spatially heterogeneous or time-varying (<xref ref-type="bibr" rid="bib24">Davis et al., 2005</xref>) disease dynamics will be important.</p><p>A possible limitation of this study is the titre rise cut-off values used for classifying seroconversion and reinfection in the cohort that determine the sensitivity and specificity of the infection criteria. However, these criteria were used because they are the standard definitions for serological determination of infection that are commonly applied for leptospirosis and a wide range of other infections, and they enable the comparison of results with other previous leptospirosis studies.</p><p>The rattiness-infection modelling framework is a flexible tool for exploring the spatial association between reservoir abundance, the environment and human health outcomes. It provides a statistically principled method for joint spatial modelling of infection risk and multiple indices of reservoir abundance, pooling data between indices and directly accounting for uncertainty in their measurement in all parameter estimates and predictions. The framework’s geostatistical structure includes spatially continuous predictors for abundance and accounts for spatial correlation, enabling mapping of both infection risk and rattiness. This can be useful for identifying high-risk areas and targeting control. One inherent limitation is its dependence on the availability of spatially continuous environmental variables and abundance data, both of which are prone to high measurement error. This can result in high uncertainty in the model parameter estimates and predictions, as demonstrated by the wider confidence intervals for risk factors in the joint model compared to the standard mixed-effects logistic regression analysis. An additional benefit of the geostatistical structure is that abundance measurements do not have to be taken at the household location, providing some flexibility in the design of eco-epidemiological studies and indices used. The framework may have important applications beyond the study of zoonotic spillover, with the rattiness component replaced by other exposure measures for example mosquito density or ecological indices (such as pollution, where there are multiple, related measures of air or groundwater quality) to model associations with human or animal health outcomes.</p><p>In conclusion, we have developed a framework that may have broad applications in delineating complex animal-environment-human interactions during zoonotic spillover and identifying opportunities for public health intervention. We demonstrate its potential by applying it to <italic>Leptospira</italic> in an urban setting, finding evidence that the extent to which local rat shedding drives spillover transmission is moderated by elevation, most likely a proxy for water runoff. Future work examining these transmission mechanisms in similar settings and across different time points will be key to establishing how generalisable these results are.</p></sec></body><back><sec sec-type="additional-information" id="s5"><title>Additional information</title><fn-group content-type="competing-interest"><title>Competing interests</title><fn fn-type="COI-statement" id="conf1"><p>No competing interests declared</p></fn><fn fn-type="COI-statement" id="conf2"><p>No competing interests declared</p></fn><fn fn-type="COI-statement" id="conf3"><p>has received funding from Serimmune and Zoetis for work related to leptospirosis. AIK also received payment and honoraria from Reckit Global Health Institute for participating in a non-profit panel. AIK received travel support from World Health Organisation and Brazilian Ministry of Health. AIK is listed as co-inventor on an issued patent (US 7,718,183 B2) and pending patent (US 61/951,732) related to leptospirosis vaccines. AIK is also on the following boards: Board of Directors, American Society of Tropical Medicine and Hygiene; Executive Board Member (2009-present), International Leptospirosis Society; Member, Inaugural Expert Panel, Reckitt Global Hygiene Institute; Steering Committee Member, Global Leptospirosis Environmental Action Network (GLEAN), WHO. The author has no other competing interests to declare</p></fn></fn-group><fn-group content-type="author-contribution"><title>Author contributions</title><fn fn-type="con" id="con1"><p>Conceptualization, Data curation, Software, Formal analysis, Investigation, Visualization, Methodology, Writing – original draft, Writing – review and editing</p></fn><fn fn-type="con" id="con2"><p>Data curation, Investigation, Writing – review and editing</p></fn><fn fn-type="con" id="con3"><p>Data curation, Investigation, Writing – review and editing</p></fn><fn fn-type="con" id="con4"><p>Data curation, Investigation, Writing – review and editing</p></fn><fn fn-type="con" id="con5"><p>Data curation, Investigation, Writing – review and editing</p></fn><fn fn-type="con" id="con6"><p>Data curation, Investigation, Writing – review and editing</p></fn><fn fn-type="con" id="con7"><p>Data curation, Investigation, Writing – review and editing</p></fn><fn fn-type="con" id="con8"><p>Writing – review and editing</p></fn><fn fn-type="con" id="con9"><p>Data curation, Investigation, Writing – review and editing</p></fn><fn fn-type="con" id="con10"><p>Data curation, Investigation, Writing – review and editing</p></fn><fn fn-type="con" id="con11"><p>Data curation, Investigation, Writing – review and editing</p></fn><fn fn-type="con" id="con12"><p>Writing – review and editing</p></fn><fn fn-type="con" id="con13"><p>Conceptualization, Funding acquisition, Investigation, Project administration, Writing – review and editing</p></fn><fn fn-type="con" id="con14"><p>Conceptualization, Supervision, Writing – review and editing</p></fn><fn fn-type="con" id="con15"><p>Conceptualization, Software, Supervision, Methodology, Writing – review and editing</p></fn><fn fn-type="con" id="con16"><p>Conceptualization, Funding acquisition, Writing – review and editing</p></fn><fn fn-type="con" id="con17"><p>Conceptualization, Software, Supervision, Methodology, Writing – review and editing</p></fn><fn fn-type="con" id="con18"><p>Conceptualization, Resources, Supervision, Funding acquisition, Investigation, Project administration, Writing – review and editing</p></fn></fn-group><fn-group content-type="ethics-information"><title>Ethics</title><fn fn-type="other"><p>Human subjects: Participants were enrolled according to written informed consent procedures approved by the Institutional Review Boards of the Oswaldo Cruz Foundation and Brazilian National Commission for Ethics in Research, Brazilian Ministry of Health (CAAE: 01877912.8.0000.0040) and Yale University School of Public Health (HIC 1006006956).</p></fn><fn fn-type="other"><p>For the rats captured in the rat ecology study, the ethics committee for the use of animals from the Oswaldo Cruz Foundation, Salvador, Brazil, approved the protocols used (protocol number 003/2012), which adhered to the guidelines of the American Society of Mammalogists for the use of wild mammals in research (Sikes and Gannon, 2011) and the guidelines of the American Veterinary Medical Association for the euthanasia of animals (Leary et al., 2013). These protocols were also approved by Yale University's Institutional Animal Care and Use Committee (IACUC), New Haven, Connecticut (protocol number 2012-11498).</p></fn></fn-group></sec><sec sec-type="supplementary-material" id="s6"><title>Additional files</title><supplementary-material id="transrepform"><label>Transparent reporting form</label><media xlink:href="elife-73120-transrepform1-v4.docx" mimetype="application" mime-subtype="docx"/></supplementary-material><supplementary-material id="repstand1"><label>Reporting standard 1.</label><caption><title>STROBE checklist for reporting observational studies.</title></caption><media xlink:href="elife-73120-repstand1-v4.docx" mimetype="application" mime-subtype="docx"/></supplementary-material></sec><sec sec-type="data-availability" id="s7"><title>Data availability</title><p>Rat and human data analysed in this study have been deposited in OSF (<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.17605/OSF.IO/AQZ2Y">https://doi.org/10.17605/OSF.IO/AQZ2Y</ext-link>). However, household coordinates and valley ID have been removed from the human data to ensure participant anonymity. Modelling functions, R scripts and metadata for analyses in this manuscript are publicly available at <ext-link ext-link-type="uri" xlink:href="https://github.com/maxeyre/Rattiness-infection-framework">https://github.com/maxeyre/Rattiness-infection-framework</ext-link>, (copy archived at <ext-link ext-link-type="uri" xlink:href="https://archive.softwareheritage.org/swh:1:dir:a43c0bc1a492da511e26455350e63ba50495be33;origin=https://github.com/maxeyre/rattiness-infection-framework;visit=swh:1:snp:afddd068ec888b2a78d6c1339a3ef7b203b2050d;anchor=swh:1:rev:e7953d38269ce97221dbdd83c0be2c65d92dff40">swh:1:rev:e7953d38269ce97221dbdd83c0be2c65d92dff40</ext-link>).</p><p>The following dataset was generated:</p><p><element-citation publication-type="data" specific-use="isSupplementedBy" id="dataset1"><person-group person-group-type="author"><name><surname>Eyre</surname><given-names>M</given-names></name><name><surname>Costa</surname><given-names>F</given-names></name><name><surname>Ko</surname><given-names>A</given-names></name></person-group><year iso-8601-date="2021">2021</year><data-title>Linking rattiness, geography and environmental degradation to spillover Leptospira infections in marginalised urban settings: Data sources</data-title><source>Open Science Framework</source><pub-id pub-id-type="doi">10.17605/OSF.IO/AQZ2Y</pub-id></element-citation></p></sec><ack id="ack"><title>Acknowledgements</title><p>We thank the residents and community leaders of Pau da Lima community for their support and participation in this study. This work was supported by the Oswaldo Cruz Foundation and Secretariat of Health Surveillance, Brazilian Ministry of Health, the National Institutes of Health of the United States, the Wellcome Trust and by the Fundação de Amparo à Pesquisa do Estado da Bahia. MTE was supported by a UK Research and Innovation (UKRI) doctorate studentship. FNS was supported by a FAPESB doctorate scholarship.</p></ack><ref-list><title>References</title><ref id="bib1"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Barcellos</surname><given-names>C</given-names></name><name><surname>Sabroza</surname><given-names>PC</given-names></name></person-group><year iso-8601-date="2000">2000</year><article-title>Socio-environmental determinants of the leptospirosis outbreak of 1996 in Western Rio de Janeiro: a geographical approach</article-title><source>International Journal of Environmental Health Research</source><volume>10</volume><fpage>301</fpage><lpage>313</lpage><pub-id pub-id-type="doi">10.1080/0960312002001500</pub-id><pub-id pub-id-type="pmid">11260779</pub-id></element-citation></ref><ref id="bib2"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Barcellos</surname><given-names>C</given-names></name><name><surname>Sabroza</surname><given-names>PC</given-names></name></person-group><year iso-8601-date="2001">2001</year><article-title>The place behind the case: leptospirosis risks and associated environmental conditions in a flood-related outbreak in Rio de Janeiro</article-title><source>Cadernos de Saúde Pública</source><volume>17</volume><fpage>S59</fpage><lpage>S67</lpage><pub-id pub-id-type="doi">10.1590/S0102-311X2001000700014</pub-id></element-citation></ref><ref id="bib3"><element-citation publication-type="software"><person-group person-group-type="author"><name><surname>Barton</surname><given-names>K</given-names></name></person-group><year iso-8601-date="2020">2020</year><data-title>Mu-min: multi-model inference</data-title><version designator="0.2">0.2</version><source>R Package Version</source></element-citation></ref><ref id="bib4"><element-citation publication-type="software"><person-group person-group-type="author"><name><surname>Bates</surname><given-names>D</given-names></name><name><surname>Sarkar</surname><given-names>D</given-names></name><name><surname>Bates</surname><given-names>MD</given-names></name><name><surname>Matrix</surname><given-names>L</given-names></name></person-group><year iso-8601-date="2007">2007</year><data-title>The lme4 package</data-title><version designator="2.0">2.0</version><source>R Package Version</source></element-citation></ref><ref id="bib5"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Becker</surname><given-names>DJ</given-names></name><name><surname>Washburne</surname><given-names>AD</given-names></name><name><surname>Faust</surname><given-names>CL</given-names></name><name><surname>Pulliam</surname><given-names>JRC</given-names></name><name><surname>Mordecai</surname><given-names>EA</given-names></name><name><surname>Lloyd-Smith</surname><given-names>JO</given-names></name><name><surname>Plowright</surname><given-names>RK</given-names></name></person-group><year iso-8601-date="2019">2019</year><article-title>Dynamic and integrative approaches to understanding pathogen spillover</article-title><source>Philosophical Transactions of the Royal Society of London. Series B, Biological Sciences</source><volume>374</volume><fpage>1</fpage><lpage>7</lpage><pub-id pub-id-type="doi">10.1098/rstb.2019.0014</pub-id><pub-id pub-id-type="pmid">31401959</pub-id></element-citation></ref><ref id="bib6"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Bhardwaj</surname><given-names>P</given-names></name><name><surname>Kosambiya</surname><given-names>JK</given-names></name><name><surname>Desai</surname><given-names>VK</given-names></name></person-group><year iso-8601-date="2008">2008</year><article-title>A case control study to explore the risk factors for acquisition of leptospirosis in Surat City, after flood</article-title><source>Indian Journal of Medical Sciences</source><volume>62</volume><fpage>431</fpage><lpage>438</lpage><pub-id pub-id-type="doi">10.4103/0019-5359.48454</pub-id><pub-id pub-id-type="pmid">19265232</pub-id></element-citation></ref><ref id="bib7"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Bierque</surname><given-names>E</given-names></name><name><surname>Thibeaux</surname><given-names>R</given-names></name><name><surname>Girault</surname><given-names>D</given-names></name><name><surname>Soupé-Gilbert</surname><given-names>ME</given-names></name><name><surname>Goarant</surname><given-names>C</given-names></name></person-group><year iso-8601-date="2020">2020</year><article-title>A systematic review of Leptospira in water and soil environments</article-title><source>PLOS ONE</source><volume>15</volume><elocation-id>e0227055</elocation-id><pub-id pub-id-type="doi">10.1371/journal.pone.0227055</pub-id><pub-id pub-id-type="pmid">31986154</pub-id></element-citation></ref><ref id="bib8"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Boey</surname><given-names>K</given-names></name><name><surname>Shiokawa</surname><given-names>K</given-names></name><name><surname>Rajeev</surname><given-names>S</given-names></name></person-group><year iso-8601-date="2019">2019</year><article-title>Leptospira infection in rats: a literature review of global prevalence and distribution</article-title><source>PLOS Neglected Tropical Diseases</source><volume>13</volume><elocation-id>e0007499</elocation-id><pub-id pub-id-type="doi">10.1371/journal.pntd.0007499</pub-id><pub-id pub-id-type="pmid">31398190</pub-id></element-citation></ref><ref id="bib9"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Bordes</surname><given-names>F</given-names></name><name><surname>Blasdell</surname><given-names>K</given-names></name><name><surname>Morand</surname><given-names>S</given-names></name></person-group><year iso-8601-date="2015">2015</year><article-title>Transmission ecology of rodent-borne diseases: new frontiers</article-title><source>Integrative Zoology</source><volume>10</volume><fpage>424</fpage><lpage>435</lpage><pub-id pub-id-type="doi">10.1111/1749-4877.12149</pub-id><pub-id pub-id-type="pmid">26176684</pub-id></element-citation></ref><ref id="bib10"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Bozdogan</surname><given-names>H</given-names></name></person-group><year iso-8601-date="1987">1987</year><article-title>Model selection and akaike ’ S information criterion (AIc): the general theory and its analytical extensions</article-title><source>Psychometrika</source><volume>52</volume><fpage>345</fpage><lpage>370</lpage><pub-id pub-id-type="doi">10.1007/BF02294361</pub-id></element-citation></ref><ref id="bib11"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Briskin</surname><given-names>EA</given-names></name><name><surname>Casanovas-Massana</surname><given-names>A</given-names></name><name><surname>Ryff</surname><given-names>KR</given-names></name><name><surname>Morales-Estrada</surname><given-names>S</given-names></name><name><surname>Hamond</surname><given-names>C</given-names></name><name><surname>Perez-Rodriguez</surname><given-names>NM</given-names></name><name><surname>Benavidez</surname><given-names>KM</given-names></name><name><surname>Weinberger</surname><given-names>DM</given-names></name><name><surname>Castro-Arellano</surname><given-names>I</given-names></name><name><surname>Wunder</surname><given-names>EA</given-names></name><name><surname>Sharp</surname><given-names>TM</given-names></name><name><surname>Rivera-Garcia</surname><given-names>B</given-names></name><name><surname>Ko</surname><given-names>AI</given-names></name></person-group><year iso-8601-date="2019">2019</year><article-title>Seroprevalence, risk factors, and rodent reservoirs of leptospirosis in an urban community of Puerto Rico, 2015</article-title><source>The Journal of Infectious Diseases</source><volume>220</volume><fpage>1489</fpage><lpage>1497</lpage><pub-id pub-id-type="doi">10.1093/infdis/jiz339</pub-id><pub-id pub-id-type="pmid">31342075</pub-id></element-citation></ref><ref id="bib12"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Byers</surname><given-names>KA</given-names></name><name><surname>Lee</surname><given-names>MJ</given-names></name><name><surname>Patrick</surname><given-names>DM</given-names></name><name><surname>Himsworth</surname><given-names>CG</given-names></name></person-group><year iso-8601-date="2019">2019</year><article-title>Rats about town: a systematic review of rat movement in urban ecosystems</article-title><source>Frontiers in Ecology and Evolution</source><volume>7</volume><elocation-id>13</elocation-id><pub-id pub-id-type="doi">10.3389/fevo.2019.00013</pub-id></element-citation></ref><ref id="bib13"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Casanovas-Massana</surname><given-names>A</given-names></name><name><surname>Costa</surname><given-names>F</given-names></name><name><surname>Riediger</surname><given-names>IN</given-names></name><name><surname>Cunha</surname><given-names>M</given-names></name><name><surname>de Oliveira</surname><given-names>D</given-names></name><name><surname>Mota</surname><given-names>DC</given-names></name><name><surname>Sousa</surname><given-names>E</given-names></name><name><surname>Querino</surname><given-names>VA</given-names></name><name><surname>Nery</surname><given-names>N</given-names></name><name><surname>Reis</surname><given-names>MG</given-names></name><name><surname>Wunder</surname><given-names>EA</given-names></name><name><surname>Diggle</surname><given-names>PJ</given-names></name><name><surname>Ko</surname><given-names>AI</given-names></name></person-group><year iso-8601-date="2018">2018</year><article-title>Spatial and temporal dynamics of pathogenic Leptospira in surface waters from the urban slum environment</article-title><source>Water Research</source><volume>130</volume><fpage>176</fpage><lpage>184</lpage><pub-id pub-id-type="doi">10.1016/j.watres.2017.11.068</pub-id><pub-id pub-id-type="pmid">29220718</pub-id></element-citation></ref><ref id="bib14"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Casanovas-Massana</surname><given-names>A</given-names></name><name><surname>de Oliveira</surname><given-names>D</given-names></name><name><surname>Schneider</surname><given-names>AG</given-names></name><name><surname>Begon</surname><given-names>M</given-names></name><name><surname>Childs</surname><given-names>JE</given-names></name><name><surname>Costa</surname><given-names>F</given-names></name><name><surname>Reis</surname><given-names>MG</given-names></name><name><surname>Ko</surname><given-names>AI</given-names></name><name><surname>Wunder</surname><given-names>EA</given-names></name></person-group><year iso-8601-date="2022">2022</year><article-title>Genetic evidence for a potential environmental pathway to spillover infection of rat-borne leptospirosis</article-title><source>The Journal of Infectious Diseases</source><volume>225</volume><fpage>130</fpage><lpage>134</lpage><pub-id pub-id-type="doi">10.1093/infdis/jiab323</pub-id><pub-id pub-id-type="pmid">34139761</pub-id></element-citation></ref><ref id="bib15"><element-citation publication-type="report"><person-group person-group-type="author"><collab>Centers for Disease Control and Prevention</collab></person-group><year iso-8601-date="2006">2006</year><source>Integrated Pest Management: Conducting Urban Rodent Surveys</source><publisher-name>US Department of Health and Human Services</publisher-name></element-citation></ref><ref id="bib16"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Christensen</surname><given-names>OF</given-names></name></person-group><year iso-8601-date="2004">2004</year><article-title>Monte Carlo maximum likelihood in model-based geostatistics</article-title><source>Journal of Computational and Graphical Statistics</source><volume>13</volume><fpage>702</fpage><lpage>718</lpage><pub-id pub-id-type="doi">10.1198/106186004X2525</pub-id></element-citation></ref><ref id="bib17"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Costa</surname><given-names>F</given-names></name><name><surname>Porter</surname><given-names>FH</given-names></name><name><surname>Rodrigues</surname><given-names>G</given-names></name><name><surname>Farias</surname><given-names>H</given-names></name><name><surname>de Faria</surname><given-names>MT</given-names></name><name><surname>Wunder</surname><given-names>EA</given-names></name><name><surname>Osikowicz</surname><given-names>LM</given-names></name><name><surname>Kosoy</surname><given-names>MY</given-names></name><name><surname>Reis</surname><given-names>MG</given-names></name><name><surname>Ko</surname><given-names>AI</given-names></name><name><surname>Childs</surname><given-names>JE</given-names></name></person-group><year iso-8601-date="2014">2014a</year><article-title>Infections by Leptospira interrogans, Seoul virus, and Bartonella spp among Norway rats (Rattus norvegicus) from the urban slum environment in Brazil</article-title><source>Vector Borne and Zoonotic Diseases</source><volume>14</volume><fpage>33</fpage><lpage>40</lpage><pub-id pub-id-type="doi">10.1089/vbz.2013.1378</pub-id><pub-id pub-id-type="pmid">24359425</pub-id></element-citation></ref><ref id="bib18"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Costa</surname><given-names>F</given-names></name><name><surname>Ribeiro</surname><given-names>GS</given-names></name><name><surname>Felzemburgh</surname><given-names>RDM</given-names></name><name><surname>Santos</surname><given-names>N</given-names></name><name><surname>Reis</surname><given-names>RB</given-names></name><name><surname>Santos</surname><given-names>AC</given-names></name><name><surname>Fraga</surname><given-names>DBM</given-names></name><name><surname>Araujo</surname><given-names>WN</given-names></name><name><surname>Santana</surname><given-names>C</given-names></name><name><surname>Childs</surname><given-names>JE</given-names></name><name><surname>Reis</surname><given-names>MG</given-names></name><name><surname>Ko</surname><given-names>AI</given-names></name><name><surname>Small</surname><given-names>PLC</given-names></name></person-group><year iso-8601-date="2014">2014b</year><article-title>Influence of household rat infestation on Leptospira transmission in the urban slum environment</article-title><source>PLOS Neglected Tropical Diseases</source><volume>8</volume><elocation-id>e3338</elocation-id><pub-id pub-id-type="doi">10.1371/journal.pntd.0003338</pub-id><pub-id pub-id-type="pmid">25474580</pub-id></element-citation></ref><ref id="bib19"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Costa</surname><given-names>F</given-names></name><name><surname>Hagan</surname><given-names>JE</given-names></name><name><surname>Calcagno</surname><given-names>J</given-names></name><name><surname>Kane</surname><given-names>M</given-names></name><name><surname>Torgerson</surname><given-names>P</given-names></name><name><surname>Martinez-Silveira</surname><given-names>MS</given-names></name><name><surname>Stein</surname><given-names>C</given-names></name><name><surname>Abela-Ridder</surname><given-names>B</given-names></name><name><surname>Ko</surname><given-names>AI</given-names></name></person-group><year iso-8601-date="2015">2015a</year><article-title>Global morbidity and mortality of leptospirosis: a systematic review</article-title><source>PLOS Neglected Tropical Diseases</source><volume>9</volume><elocation-id>e0003898</elocation-id><pub-id pub-id-type="doi">10.1371/journal.pntd.0003898</pub-id><pub-id pub-id-type="pmid">26379143</pub-id></element-citation></ref><ref id="bib20"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Costa</surname><given-names>F</given-names></name><name><surname>Wunder</surname><given-names>EA</given-names></name><name><surname>De Oliveira</surname><given-names>D</given-names></name><name><surname>Bisht</surname><given-names>V</given-names></name><name><surname>Rodrigues</surname><given-names>G</given-names></name><name><surname>Reis</surname><given-names>MG</given-names></name><name><surname>Ko</surname><given-names>AI</given-names></name><name><surname>Begon</surname><given-names>M</given-names></name><name><surname>Childs</surname><given-names>JE</given-names></name></person-group><year iso-8601-date="2015">2015b</year><article-title>Patterns in Leptospira shedding in Norway rats (Rattus norvegicus) from Brazilian slum communities at high risk of disease transmission</article-title><source>PLOS Neglected Tropical Diseases</source><volume>9</volume><elocation-id>e0003819</elocation-id><pub-id pub-id-type="doi">10.1371/journal.pntd.0003819</pub-id><pub-id pub-id-type="pmid">26047009</pub-id></element-citation></ref><ref id="bib21"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Costa</surname><given-names>F</given-names></name><name><surname>Zeppelini</surname><given-names>CG</given-names></name><name><surname>Ribeiro</surname><given-names>GS</given-names></name><name><surname>Santos</surname><given-names>N</given-names></name><name><surname>Reis</surname><given-names>RB</given-names></name><name><surname>Martins</surname><given-names>RD</given-names></name><name><surname>Bittencourt</surname><given-names>D</given-names></name><name><surname>Santana</surname><given-names>C</given-names></name><name><surname>Brant</surname><given-names>J</given-names></name><name><surname>Reis</surname><given-names>MG</given-names></name><name><surname>Ko</surname><given-names>AI</given-names></name></person-group><year iso-8601-date="2021">2021</year><article-title>Household rat infestation in urban slum populations: development and validation of a predictive score for leptospirosis</article-title><source>PLOS Neglected Tropical Diseases</source><volume>15</volume><elocation-id>e0009154</elocation-id><pub-id pub-id-type="doi">10.1371/journal.pntd.0009154</pub-id><pub-id pub-id-type="pmid">33657101</pub-id></element-citation></ref><ref id="bib22"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Cromwell</surname><given-names>EA</given-names></name><name><surname>Stoddard</surname><given-names>ST</given-names></name><name><surname>Barker</surname><given-names>CM</given-names></name><name><surname>Van Rie</surname><given-names>A</given-names></name><name><surname>Messer</surname><given-names>WB</given-names></name><name><surname>Meshnick</surname><given-names>SR</given-names></name><name><surname>Morrison</surname><given-names>AC</given-names></name><name><surname>Scott</surname><given-names>TW</given-names></name></person-group><year iso-8601-date="2017">2017</year><article-title>The relationship between entomological indicators of Aedes aegypti abundance and dengue virus infection</article-title><source>PLOS Neglected Tropical Diseases</source><volume>11</volume><elocation-id>e0005429</elocation-id><pub-id pub-id-type="doi">10.1371/journal.pntd.0005429</pub-id><pub-id pub-id-type="pmid">28333938</pub-id></element-citation></ref><ref id="bib23"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Davis</surname><given-names>DE</given-names></name><name><surname>Emlen</surname><given-names>JT</given-names></name><name><surname>Stokes</surname><given-names>AW</given-names></name></person-group><year iso-8601-date="1948">1948</year><article-title>Studies on home range in the brown rat</article-title><source>Journal of Mammalogy</source><volume>29</volume><elocation-id>207</elocation-id><pub-id pub-id-type="doi">10.2307/1375387</pub-id></element-citation></ref><ref id="bib24"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Davis</surname><given-names>S</given-names></name><name><surname>Calvet</surname><given-names>E</given-names></name><name><surname>Leirs</surname><given-names>H</given-names></name></person-group><year iso-8601-date="2005">2005</year><article-title>Fluctuating rodent populations and risk to humans from rodent-borne zoonoses</article-title><source>Vector Borne and Zoonotic Diseases</source><volume>5</volume><fpage>305</fpage><lpage>314</lpage><pub-id pub-id-type="doi">10.1089/vbz.2005.5.305</pub-id><pub-id pub-id-type="pmid">16417426</pub-id></element-citation></ref><ref id="bib25"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>de Faria</surname><given-names>MT</given-names></name><name><surname>Calderwood</surname><given-names>MS</given-names></name><name><surname>Athanazio</surname><given-names>DA</given-names></name><name><surname>McBride</surname><given-names>AJA</given-names></name><name><surname>Hartskeerl</surname><given-names>RA</given-names></name><name><surname>Pereira</surname><given-names>MM</given-names></name><name><surname>Ko</surname><given-names>AI</given-names></name><name><surname>Reis</surname><given-names>MG</given-names></name></person-group><year iso-8601-date="2008">2008</year><article-title>Carriage of Leptospira interrogans among domestic rats from an urban setting highly endemic for leptospirosis in Brazil</article-title><source>Acta Tropica</source><volume>108</volume><fpage>1</fpage><lpage>5</lpage><pub-id pub-id-type="doi">10.1016/j.actatropica.2008.07.005</pub-id><pub-id pub-id-type="pmid">18721789</pub-id></element-citation></ref><ref id="bib26"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>de Masi</surname><given-names>E</given-names></name><name><surname>Vilaça</surname><given-names>PJ</given-names></name><name><surname>Razzolini</surname><given-names>MTP</given-names></name></person-group><year iso-8601-date="2009">2009</year><article-title>Evaluation on the effectiveness of actions for controlling infestation by rodents in campo limpo region, Sao Paulo municipality, Brazil</article-title><source>International Journal of Environmental Health Research</source><volume>19</volume><fpage>291</fpage><lpage>304</lpage><pub-id pub-id-type="doi">10.1080/09603120802592723</pub-id><pub-id pub-id-type="pmid">20183196</pub-id></element-citation></ref><ref id="bib27"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Dhewantara</surname><given-names>PW</given-names></name><name><surname>Lau</surname><given-names>CL</given-names></name><name><surname>Allan</surname><given-names>KJ</given-names></name><name><surname>Hu</surname><given-names>W</given-names></name><name><surname>Zhang</surname><given-names>W</given-names></name><name><surname>Mamun</surname><given-names>AA</given-names></name><name><surname>Soares Magalhães</surname><given-names>RJ</given-names></name></person-group><year iso-8601-date="2019">2019</year><article-title>Spatial epidemiological approaches to inform leptospirosis surveillance and control: a systematic review and critical appraisal of methods</article-title><source>Zoonoses and Public Health</source><volume>66</volume><fpage>185</fpage><lpage>206</lpage><pub-id pub-id-type="doi">10.1111/zph.12549</pub-id><pub-id pub-id-type="pmid">30593736</pub-id></element-citation></ref><ref id="bib28"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Dunn</surname><given-names>PK</given-names></name><name><surname>Smyth</surname><given-names>GK</given-names></name></person-group><year iso-8601-date="1996">1996</year><article-title>Randomized quantile residuals</article-title><source>Journal of Computational and Graphical Statistics</source><volume>5</volume><fpage>236</fpage><lpage>244</lpage><pub-id pub-id-type="doi">10.1080/10618600.1996.10474708</pub-id></element-citation></ref><ref id="bib29"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Eisen</surname><given-names>RJ</given-names></name><name><surname>Eisen</surname><given-names>L</given-names></name></person-group><year iso-8601-date="2008">2008</year><article-title>Spatial modeling of human risk of exposure to vector-borne pathogens based on epidemiological versus arthropod vector data</article-title><source>Journal of Medical Entomology</source><volume>45</volume><fpage>181</fpage><lpage>192</lpage><pub-id pub-id-type="doi">10.1603/0022-2585(2008)45[181:smohro]2.0.co;2</pub-id><pub-id pub-id-type="pmid">18402133</pub-id></element-citation></ref><ref id="bib30"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Eyre</surname><given-names>MT</given-names></name><name><surname>Carvalho-Pereira</surname><given-names>TSA</given-names></name><name><surname>Souza</surname><given-names>FN</given-names></name><name><surname>Khalil</surname><given-names>H</given-names></name><name><surname>Hacker</surname><given-names>KP</given-names></name><name><surname>Serrano</surname><given-names>S</given-names></name><name><surname>Taylor</surname><given-names>JP</given-names></name><name><surname>Reis</surname><given-names>MG</given-names></name><name><surname>Ko</surname><given-names>AI</given-names></name><name><surname>Begon</surname><given-names>M</given-names></name><name><surname>Diggle</surname><given-names>PJ</given-names></name><name><surname>Costa</surname><given-names>F</given-names></name><name><surname>Giorgi</surname><given-names>E</given-names></name></person-group><year iso-8601-date="2020">2020</year><article-title>A multivariate geostatistical framework for combining multiple indices of abundance for disease vectors and reservoirs: a case study of rattiness in a low-income urban Brazilian community</article-title><source>Journal of the Royal Society, Interface</source><volume>17</volume><elocation-id>20200398</elocation-id><pub-id pub-id-type="doi">10.1098/rsif.2020.0398</pub-id><pub-id pub-id-type="pmid">32871096</pub-id></element-citation></ref><ref id="bib31"><element-citation publication-type="preprint"><person-group person-group-type="author"><name><surname>Eyre</surname><given-names>M</given-names></name><name><surname>Costa</surname><given-names>F</given-names></name><name><surname>Ko</surname><given-names>A</given-names></name></person-group><year iso-8601-date="2021">2021</year><article-title>Linking Rattiness, Geography and Environmental Degradation to Spillover Leptospira Infections in Marginalised Urban Settings: Data Sources</article-title><source>medRxiv</source><pub-id pub-id-type="doi">10.1101/2021.09.21.21263884</pub-id></element-citation></ref><ref id="bib32"><element-citation publication-type="software"><person-group person-group-type="author"><name><surname>Eyre</surname><given-names>M</given-names></name></person-group><year iso-8601-date="2022">2022</year><data-title>Linking rattiness, geography and environmental degradation to spillover Leptospira infections in marginalised urban settings</data-title><version designator="swh:1:rev:e7953d38269ce97221dbdd83c0be2c65d92dff40">swh:1:rev:e7953d38269ce97221dbdd83c0be2c65d92dff40</version><source>Software Heritage</source><ext-link ext-link-type="uri" xlink:href="https://archive.softwareheritage.org/swh:1:dir:a43c0bc1a492da511e26455350e63ba50495be33;origin=https://github.com/maxeyre/rattiness-infection-framework;visit=swh:1:snp:afddd068ec888b2a78d6c1339a3ef7b203b2050d;anchor=swh:1:rev:e7953d38269ce97221dbdd83c0be2c65d92dff40">https://archive.softwareheritage.org/swh:1:dir:a43c0bc1a492da511e26455350e63ba50495be33;origin=https://github.com/maxeyre/rattiness-infection-framework;visit=swh:1:snp:afddd068ec888b2a78d6c1339a3ef7b203b2050d;anchor=swh:1:rev:e7953d38269ce97221dbdd83c0be2c65d92dff40</ext-link></element-citation></ref><ref id="bib33"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Felzemburgh</surname><given-names>RDM</given-names></name><name><surname>Ribeiro</surname><given-names>GS</given-names></name><name><surname>Costa</surname><given-names>F</given-names></name><name><surname>Reis</surname><given-names>RB</given-names></name><name><surname>Hagan</surname><given-names>JE</given-names></name><name><surname>Melendez</surname><given-names>A</given-names></name><name><surname>Fraga</surname><given-names>D</given-names></name><name><surname>Santana</surname><given-names>FS</given-names></name><name><surname>Mohr</surname><given-names>S</given-names></name><name><surname>dos Santos</surname><given-names>BL</given-names></name><name><surname>Silva</surname><given-names>AQ</given-names></name><name><surname>Santos</surname><given-names>AC</given-names></name><name><surname>Ravines</surname><given-names>RR</given-names></name><name><surname>Tassinari</surname><given-names>WS</given-names></name><name><surname>Carvalho</surname><given-names>MS</given-names></name><name><surname>Reis</surname><given-names>MG</given-names></name><name><surname>Ko</surname><given-names>AI</given-names></name></person-group><year iso-8601-date="2014">2014</year><article-title>Prospective study of leptospirosis transmission in an urban slum community: role of poor environment in repeated exposures to the Leptospira agent</article-title><source>PLOS Neglected Tropical Diseases</source><volume>8</volume><elocation-id>e2927</elocation-id><pub-id pub-id-type="doi">10.1371/journal.pntd.0002927</pub-id><pub-id pub-id-type="pmid">24875389</pub-id></element-citation></ref><ref id="bib34"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Feng</surname><given-names>AYT</given-names></name><name><surname>Himsworth</surname><given-names>CG</given-names></name></person-group><year iso-8601-date="2014">2014</year><article-title>The secret life of the City rat: a review of the ecology of urban Norway and black rats (Rattus norvegicus and Rattus rattus)</article-title><source>Urban Ecosystems</source><volume>17</volume><fpage>149</fpage><lpage>162</lpage><pub-id pub-id-type="doi">10.1007/s11252-013-0305-4</pub-id></element-citation></ref><ref id="bib35"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Fichet-Calvet</surname><given-names>E</given-names></name><name><surname>Lecompte</surname><given-names>E</given-names></name><name><surname>Koivogui</surname><given-names>L</given-names></name><name><surname>Soropogui</surname><given-names>B</given-names></name><name><surname>Doré</surname><given-names>A</given-names></name><name><surname>Kourouma</surname><given-names>F</given-names></name><name><surname>Sylla</surname><given-names>O</given-names></name><name><surname>Daffis</surname><given-names>S</given-names></name><name><surname>Koulémou</surname><given-names>K</given-names></name><name><surname>Ter Meulen</surname><given-names>J</given-names></name></person-group><year iso-8601-date="2007">2007</year><article-title>Fluctuation of abundance and Lassa virus prevalence in Mastomys natalensis in guinea, West Africa</article-title><source>Vector Borne and Zoonotic Diseases</source><volume>7</volume><fpage>119</fpage><lpage>128</lpage><pub-id pub-id-type="doi">10.1089/vbz.2006.0520</pub-id><pub-id pub-id-type="pmid">17627428</pub-id></element-citation></ref><ref id="bib36"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Giorgi</surname><given-names>E</given-names></name><name><surname>Diggle</surname><given-names>PJ</given-names></name></person-group><year iso-8601-date="2017">2017</year><article-title>PrevMap: an R package for prevalence mapping</article-title><source>Journal of Statistical Software</source><volume>78</volume><fpage>1</fpage><lpage>29</lpage><pub-id pub-id-type="doi">10.18637/jss.v078.i08</pub-id></element-citation></ref><ref id="bib37"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Goarant</surname><given-names>C</given-names></name></person-group><year iso-8601-date="2016">2016</year><article-title>Leptospirosis: risk factors and management challenges in developing countries</article-title><source>Research and Reports in Tropical Medicine</source><volume>7</volume><fpage>49</fpage><lpage>62</lpage><pub-id pub-id-type="doi">10.2147/RRTM.S102543</pub-id><pub-id pub-id-type="pmid">30050339</pub-id></element-citation></ref><ref id="bib38"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Hacker</surname><given-names>KP</given-names></name><name><surname>Minter</surname><given-names>A</given-names></name><name><surname>Begon</surname><given-names>M</given-names></name><name><surname>Diggle</surname><given-names>PJ</given-names></name><name><surname>Serrano</surname><given-names>S</given-names></name><name><surname>Reis</surname><given-names>MG</given-names></name><name><surname>Childs</surname><given-names>JE</given-names></name><name><surname>Ko</surname><given-names>AI</given-names></name><name><surname>Costa</surname><given-names>F</given-names></name></person-group><year iso-8601-date="2016">2016</year><article-title>A comparative assessment of track plates to quantify fine scale variations in the relative abundance of Norway rats in urban slums</article-title><source>Urban Ecosystems</source><volume>19</volume><fpage>561</fpage><lpage>575</lpage><pub-id pub-id-type="doi">10.1007/s11252-015-0519-8</pub-id><pub-id pub-id-type="pmid">27453682</pub-id></element-citation></ref><ref id="bib39"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Hacker</surname><given-names>KP</given-names></name><name><surname>Sacramento</surname><given-names>GA</given-names></name><name><surname>Cruz</surname><given-names>JS</given-names></name><name><surname>de Oliveira</surname><given-names>D</given-names></name><name><surname>Nery</surname><given-names>N</given-names></name><name><surname>Lindow</surname><given-names>JC</given-names></name><name><surname>Carvalho</surname><given-names>M</given-names></name><name><surname>Hagan</surname><given-names>J</given-names></name><name><surname>Diggle</surname><given-names>PJ</given-names></name><name><surname>Begon</surname><given-names>M</given-names></name><name><surname>Reis</surname><given-names>MG</given-names></name><name><surname>Wunder</surname><given-names>EA</given-names></name><name><surname>Ko</surname><given-names>AI</given-names></name><name><surname>Costa</surname><given-names>F</given-names></name></person-group><year iso-8601-date="2020">2020</year><article-title>Influence of rainfall on Leptospira infection and disease in a tropical urban setting, Brazil</article-title><source>Emerging Infectious Diseases</source><volume>26</volume><fpage>311</fpage><lpage>314</lpage><pub-id pub-id-type="doi">10.3201/eid2602.190102</pub-id><pub-id pub-id-type="pmid">31961288</pub-id></element-citation></ref><ref id="bib40"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Hagan</surname><given-names>JE</given-names></name><name><surname>Moraga</surname><given-names>P</given-names></name><name><surname>Costa</surname><given-names>F</given-names></name><name><surname>Capian</surname><given-names>N</given-names></name><name><surname>Ribeiro</surname><given-names>GS</given-names></name><name><surname>Wunder</surname><given-names>EA</given-names></name><name><surname>Felzemburgh</surname><given-names>RDM</given-names></name><name><surname>Reis</surname><given-names>RB</given-names></name><name><surname>Nery</surname><given-names>N</given-names></name><name><surname>Santana</surname><given-names>FS</given-names></name><name><surname>Fraga</surname><given-names>D</given-names></name><name><surname>Dos Santos</surname><given-names>BL</given-names></name><name><surname>Santos</surname><given-names>AC</given-names></name><name><surname>Queiroz</surname><given-names>A</given-names></name><name><surname>Tassinari</surname><given-names>W</given-names></name><name><surname>Carvalho</surname><given-names>MS</given-names></name><name><surname>Reis</surname><given-names>MG</given-names></name><name><surname>Diggle</surname><given-names>PJ</given-names></name><name><surname>Ko</surname><given-names>AI</given-names></name></person-group><year iso-8601-date="2016">2016</year><article-title>Spatiotemporal determinants of urban leptospirosis transmission: four-year prospective cohort study of slum residents in Brazil</article-title><source>PLOS Neglected Tropical Diseases</source><volume>10</volume><elocation-id>e0004275</elocation-id><pub-id pub-id-type="doi">10.1371/journal.pntd.0004275</pub-id><pub-id pub-id-type="pmid">26771379</pub-id></element-citation></ref><ref id="bib41"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Harris</surname><given-names>PA</given-names></name><name><surname>Taylor</surname><given-names>R</given-names></name><name><surname>Thielke</surname><given-names>R</given-names></name><name><surname>Payne</surname><given-names>J</given-names></name><name><surname>Gonzalez</surname><given-names>N</given-names></name><name><surname>Conde</surname><given-names>JG</given-names></name></person-group><year iso-8601-date="2009">2009</year><article-title>Research electronic data capture (redcap) -- a metadata-driven methodology and workflow process for providing translational research informatics support</article-title><source>Journal of Biomedical Informatics</source><volume>42</volume><fpage>377</fpage><lpage>381</lpage><pub-id pub-id-type="doi">10.1016/j.jbi.2008.08.010</pub-id><pub-id pub-id-type="pmid">18929686</pub-id></element-citation></ref><ref id="bib42"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Hastie</surname><given-names>T</given-names></name><name><surname>Tibshirani</surname><given-names>R</given-names></name></person-group><year iso-8601-date="1987">1987</year><article-title>Generalized additive models: some applications</article-title><source>Journal of the American Statistical Association</source><volume>82</volume><fpage>371</fpage><lpage>386</lpage><pub-id pub-id-type="doi">10.1080/01621459.1987.10478440</pub-id></element-citation></ref><ref id="bib43"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Hurd</surname><given-names>J</given-names></name><name><surname>Berke</surname><given-names>O</given-names></name><name><surname>Poljak</surname><given-names>Z</given-names></name><name><surname>Runge</surname><given-names>M</given-names></name></person-group><year iso-8601-date="2017">2017</year><article-title>Spatial analysis of Leptospira infection in muskrats in lower saxony, Germany, and the association with human leptospirosis</article-title><source>Research in Veterinary Science</source><volume>114</volume><fpage>351</fpage><lpage>354</lpage><pub-id pub-id-type="doi">10.1016/j.rvsc.2017.06.015</pub-id><pub-id pub-id-type="pmid">28668503</pub-id></element-citation></ref><ref id="bib44"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Keenan</surname><given-names>J</given-names></name><name><surname>Ervin</surname><given-names>G</given-names></name><name><surname>Aung</surname><given-names>M</given-names></name><name><surname>McGwin</surname><given-names>GJ</given-names></name><name><surname>Jolly</surname><given-names>P</given-names></name></person-group><year iso-8601-date="2010">2010</year><article-title>Risk factors for clinical leptospirosis from Western Jamaica</article-title><source>The American Journal of Tropical Medicine and Hygiene</source><volume>83</volume><fpage>633</fpage><lpage>636</lpage><pub-id pub-id-type="doi">10.4269/ajtmh.2010.09-0609</pub-id><pub-id pub-id-type="pmid">20810831</pub-id></element-citation></ref><ref id="bib45"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Khalil</surname><given-names>H</given-names></name><name><surname>Santana</surname><given-names>R</given-names></name><name><surname>de Oliveira</surname><given-names>D</given-names></name><name><surname>Palma</surname><given-names>F</given-names></name><name><surname>Lustosa</surname><given-names>R</given-names></name><name><surname>Eyre</surname><given-names>MT</given-names></name><name><surname>Carvalho-Pereira</surname><given-names>T</given-names></name><name><surname>Reis</surname><given-names>MG</given-names></name><name><surname>Ko</surname><given-names>AI</given-names></name><name><surname>Diggle</surname><given-names>PJ</given-names></name><name><surname>Alzate Lopez</surname><given-names>Y</given-names></name><name><surname>Begon</surname><given-names>M</given-names></name><name><surname>Costa</surname><given-names>F</given-names></name></person-group><year iso-8601-date="2021">2021</year><article-title>Poverty, sanitation, and Leptospira transmission pathways in residents from four Brazilian slums</article-title><source>PLOS Neglected Tropical Diseases</source><volume>15</volume><elocation-id>e0009256</elocation-id><pub-id pub-id-type="doi">10.1371/journal.pntd.0009256</pub-id><pub-id pub-id-type="pmid">33788864</pub-id></element-citation></ref><ref id="bib46"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Krøjgaard</surname><given-names>LH</given-names></name><name><surname>Villumsen</surname><given-names>S</given-names></name><name><surname>Markussen</surname><given-names>MDK</given-names></name><name><surname>Jensen</surname><given-names>JS</given-names></name><name><surname>Leirs</surname><given-names>H</given-names></name><name><surname>Heiberg</surname><given-names>AC</given-names></name></person-group><year iso-8601-date="2009">2009</year><article-title>High prevalence of Leptospira spp in sewer rats (Rattus norvegicus)</article-title><source>Epidemiology and Infection</source><volume>137</volume><fpage>1586</fpage><lpage>1592</lpage><pub-id pub-id-type="doi">10.1017/S0950268809002647</pub-id><pub-id pub-id-type="pmid">19393116</pub-id></element-citation></ref><ref id="bib47"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Lau</surname><given-names>CL</given-names></name><name><surname>Smythe</surname><given-names>LD</given-names></name><name><surname>Craig</surname><given-names>SB</given-names></name><name><surname>Weinstein</surname><given-names>P</given-names></name></person-group><year iso-8601-date="2010">2010</year><article-title>Climate change, flooding, urbanisation and leptospirosis: fuelling the fire?</article-title><source>Transactions of the Royal Society of Tropical Medicine and Hygiene</source><volume>104</volume><fpage>631</fpage><lpage>638</lpage><pub-id pub-id-type="doi">10.1016/j.trstmh.2010.07.002</pub-id><pub-id pub-id-type="pmid">20813388</pub-id></element-citation></ref><ref id="bib48"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Lau</surname><given-names>CL</given-names></name><name><surname>Watson</surname><given-names>CH</given-names></name><name><surname>Lowry</surname><given-names>JH</given-names></name><name><surname>David</surname><given-names>MC</given-names></name><name><surname>Craig</surname><given-names>SB</given-names></name><name><surname>Wynwood</surname><given-names>SJ</given-names></name><name><surname>Kama</surname><given-names>M</given-names></name><name><surname>Nilles</surname><given-names>EJ</given-names></name></person-group><year iso-8601-date="2016">2016</year><article-title>Human leptospirosis infection in Fiji: an eco-epidemiological approach to identifying risk factors and environmental drivers for transmission</article-title><source>PLOS Neglected Tropical Diseases</source><volume>10</volume><elocation-id>e0004405</elocation-id><pub-id pub-id-type="doi">10.1371/journal.pntd.0004405</pub-id><pub-id pub-id-type="pmid">26820752</pub-id></element-citation></ref><ref id="bib49"><element-citation publication-type="report"><person-group person-group-type="author"><name><surname>Leary</surname><given-names>SL</given-names></name><name><surname>Underwood</surname><given-names>W</given-names></name><name><surname>Anthony</surname><given-names>R</given-names></name><name><surname>Cartner</surname><given-names>S</given-names></name><name><surname>Corey</surname><given-names>D</given-names></name></person-group><year iso-8601-date="2013">2013</year><source>AVMA guidelines for the euthanasia of animals</source><publisher-name>American Veterinary Medical Association</publisher-name></element-citation></ref><ref id="bib50"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Mayfield</surname><given-names>HJ</given-names></name><name><surname>Smith</surname><given-names>CS</given-names></name><name><surname>Lowry</surname><given-names>JH</given-names></name><name><surname>Watson</surname><given-names>CH</given-names></name><name><surname>Baker</surname><given-names>MG</given-names></name><name><surname>Kama</surname><given-names>M</given-names></name><name><surname>Nilles</surname><given-names>EJ</given-names></name><name><surname>Lau</surname><given-names>CL</given-names></name></person-group><year iso-8601-date="2018">2018</year><article-title>Predictive risk mapping of an environmentally-driven infectious disease using spatial Bayesian networks: a case study of leptospirosis in Fiji</article-title><source>PLOS Neglected Tropical Diseases</source><volume>12</volume><elocation-id>e0006857</elocation-id><pub-id pub-id-type="doi">10.1371/journal.pntd.0006857</pub-id><pub-id pub-id-type="pmid">30307936</pub-id></element-citation></ref><ref id="bib51"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Minter</surname><given-names>A</given-names></name><name><surname>Diggle</surname><given-names>PJ</given-names></name><name><surname>Costa</surname><given-names>F</given-names></name><name><surname>Childs</surname><given-names>J</given-names></name><name><surname>Ko</surname><given-names>AI</given-names></name><name><surname>Begon</surname><given-names>M</given-names></name></person-group><year iso-8601-date="2018">2018</year><article-title>A model for leptospire dynamics and control in the Norway rat (Rattus norvegicus) the reservoir host in urban slum environments</article-title><source>Epidemics</source><volume>25</volume><fpage>26</fpage><lpage>34</lpage><pub-id pub-id-type="doi">10.1016/j.epidem.2018.05.002</pub-id><pub-id pub-id-type="pmid">29773482</pub-id></element-citation></ref><ref id="bib52"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Mwachui</surname><given-names>MA</given-names></name><name><surname>Crump</surname><given-names>L</given-names></name><name><surname>Hartskeerl</surname><given-names>R</given-names></name><name><surname>Zinsstag</surname><given-names>J</given-names></name><name><surname>Hattendorf</surname><given-names>J</given-names></name></person-group><year iso-8601-date="2015">2015</year><article-title>Environmental and behavioural determinants of leptospirosis transmission: a systematic review</article-title><source>PLOS Neglected Tropical Diseases</source><volume>9</volume><elocation-id>e0003843</elocation-id><pub-id pub-id-type="doi">10.1371/journal.pntd.0003843</pub-id><pub-id pub-id-type="pmid">26379035</pub-id></element-citation></ref><ref id="bib53"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Nicholson</surname><given-names>MC</given-names></name><name><surname>Mather</surname><given-names>TN</given-names></name></person-group><year iso-8601-date="1996">1996</year><article-title>Methods for evaluating Lyme disease risks using geographic information systems and geospatial analysis</article-title><source>Journal of Medical Entomology</source><volume>33</volume><fpage>711</fpage><lpage>720</lpage><pub-id pub-id-type="doi">10.1093/jmedent/33.5.711</pub-id><pub-id pub-id-type="pmid">8840676</pub-id></element-citation></ref><ref id="bib54"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Owers</surname><given-names>KA</given-names></name><name><surname>Odetunde</surname><given-names>J</given-names></name><name><surname>de Matos</surname><given-names>RB</given-names></name><name><surname>Sacramento</surname><given-names>G</given-names></name><name><surname>Carvalho</surname><given-names>M</given-names></name><name><surname>Nery</surname><given-names>N</given-names><suffix>Jr</suffix></name><name><surname>Costa</surname><given-names>F</given-names></name><name><surname>Reis</surname><given-names>MG</given-names></name><name><surname>Childs</surname><given-names>JE</given-names></name><name><surname>Hagan</surname><given-names>JE</given-names></name><name><surname>Diggle</surname><given-names>PJ</given-names></name><name><surname>Ko</surname><given-names>AI</given-names></name></person-group><year iso-8601-date="2018">2018</year><article-title>Fine-Scale GPs tracking to quantify human movement patterns and exposure to leptospires in the urban slum environment</article-title><source>PLOS Neglected Tropical Diseases</source><volume>12</volume><elocation-id>e0006752</elocation-id><pub-id pub-id-type="doi">10.1371/journal.pntd.0006752</pub-id><pub-id pub-id-type="pmid">30169513</pub-id></element-citation></ref><ref id="bib55"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Panti-May</surname><given-names>JA</given-names></name><name><surname>Carvalho-Pereira</surname><given-names>TSA</given-names></name><name><surname>Serrano</surname><given-names>S</given-names></name><name><surname>Pedra</surname><given-names>GG</given-names></name><name><surname>Taylor</surname><given-names>J</given-names></name><name><surname>Pertile</surname><given-names>AC</given-names></name><name><surname>Minter</surname><given-names>A</given-names></name><name><surname>Airam</surname><given-names>V</given-names></name><name><surname>Carvalho</surname><given-names>M</given-names></name><name><surname>Júnior</surname><given-names>NN</given-names></name><name><surname>Rodrigues</surname><given-names>G</given-names></name><name><surname>Reis</surname><given-names>MG</given-names></name><name><surname>Ko</surname><given-names>AI</given-names></name><name><surname>Childs</surname><given-names>JE</given-names></name><name><surname>Begon</surname><given-names>M</given-names></name><name><surname>Costa</surname><given-names>F</given-names></name></person-group><year iso-8601-date="2016">2016</year><article-title>A two-year ecological study of Norway rats (Rattus norvegicus) in a Brazilian urban slum</article-title><source>PLOS ONE</source><volume>11</volume><elocation-id>e0152511</elocation-id><pub-id pub-id-type="doi">10.1371/journal.pone.0152511</pub-id><pub-id pub-id-type="pmid">27015422</pub-id></element-citation></ref><ref id="bib56"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Pellizzaro</surname><given-names>M</given-names></name><name><surname>Martins</surname><given-names>CM</given-names></name><name><surname>Yamakawa</surname><given-names>AC</given-names></name><name><surname>Ferraz</surname><given-names>D</given-names></name><name><surname>Morikawa</surname><given-names>VM</given-names></name><name><surname>Ferreira</surname><given-names>F</given-names></name><name><surname>Santos</surname><given-names>APD</given-names></name><name><surname>Biondo</surname><given-names>AW</given-names></name><name><surname>Langoni</surname><given-names>H</given-names></name></person-group><year iso-8601-date="2019">2019</year><article-title>Molecular detection of Leptospira spp in rats as early spatial predictor for human disease in an endemic urban area</article-title><source>PLOS ONE</source><volume>14</volume><elocation-id>e0216830</elocation-id><pub-id pub-id-type="doi">10.1371/journal.pone.0216830</pub-id><pub-id pub-id-type="pmid">31116784</pub-id></element-citation></ref><ref id="bib57"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Plowright</surname><given-names>RK</given-names></name><name><surname>Parrish</surname><given-names>CR</given-names></name><name><surname>McCallum</surname><given-names>H</given-names></name><name><surname>Hudson</surname><given-names>PJ</given-names></name><name><surname>Ko</surname><given-names>AI</given-names></name><name><surname>Graham</surname><given-names>AL</given-names></name><name><surname>Lloyd-Smith</surname><given-names>JO</given-names></name></person-group><year iso-8601-date="2017">2017</year><article-title>Pathways to zoonotic spillover</article-title><source>Nature Reviews. Microbiology</source><volume>15</volume><fpage>502</fpage><lpage>510</lpage><pub-id pub-id-type="doi">10.1038/nrmicro.2017.45</pub-id><pub-id pub-id-type="pmid">28555073</pub-id></element-citation></ref><ref id="bib58"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Prabhakaran</surname><given-names>SG</given-names></name><name><surname>Shanmughapriya</surname><given-names>S</given-names></name><name><surname>Dhanapaul</surname><given-names>S</given-names></name><name><surname>James</surname><given-names>A</given-names></name><name><surname>Natarajaseenivasan</surname><given-names>K</given-names></name></person-group><year iso-8601-date="2014">2014</year><article-title>Risk factors associated with rural and urban epidemics of leptospirosis in tiruchirappalli district of Tamilnadu, India</article-title><source>Journal of Public Health</source><volume>22</volume><fpage>323</fpage><lpage>333</lpage><pub-id pub-id-type="doi">10.1007/s10389-014-0611-1</pub-id></element-citation></ref><ref id="bib59"><element-citation publication-type="software"><person-group person-group-type="author"><collab>R Development Core Team</collab></person-group><year iso-8601-date="2016">2016</year><data-title>R: a language and environment for statistical computing</data-title><version designator="1.0.1">1.0.1</version><publisher-loc>Vienna, Austria</publisher-loc><publisher-name>R Foundation for Statistical Computing</publisher-name><ext-link ext-link-type="uri" xlink:href="http://www.r-project.org">http://www.r-project.org</ext-link></element-citation></ref><ref id="bib60"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Reis</surname><given-names>RB</given-names></name><name><surname>Ribeiro</surname><given-names>GS</given-names></name><name><surname>Felzemburgh</surname><given-names>RDM</given-names></name><name><surname>Santana</surname><given-names>FS</given-names></name><name><surname>Mohr</surname><given-names>S</given-names></name><name><surname>Melendez</surname><given-names>A</given-names></name><name><surname>Queiroz</surname><given-names>A</given-names></name><name><surname>Santos</surname><given-names>AC</given-names></name><name><surname>Ravines</surname><given-names>RR</given-names></name><name><surname>Tassinari</surname><given-names>WS</given-names></name><name><surname>Carvalho</surname><given-names>MS</given-names></name><name><surname>Reis</surname><given-names>MG</given-names></name><name><surname>Ko</surname><given-names>AI</given-names></name></person-group><year iso-8601-date="2008">2008</year><article-title>Impact of environment and social gradient on Leptospira infection in urban slums</article-title><source>PLOS Neglected Tropical Diseases</source><volume>2</volume><elocation-id>e0000228</elocation-id><pub-id pub-id-type="doi">10.1371/journal.pntd.0000228</pub-id><pub-id pub-id-type="pmid">18431445</pub-id></element-citation></ref><ref id="bib61"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Rotejanaprasert</surname><given-names>C</given-names></name><name><surname>Lawson</surname><given-names>A</given-names></name><name><surname>Rossow</surname><given-names>H</given-names></name><name><surname>Sane</surname><given-names>J</given-names></name><name><surname>Huitu</surname><given-names>O</given-names></name><name><surname>Henttonen</surname><given-names>H</given-names></name><name><surname>Del Rio Vilas</surname><given-names>VJ</given-names></name></person-group><year iso-8601-date="2018">2018</year><article-title>Towards integrated surveillance of zoonoses: spatiotemporal joint modeling of rodent population data and human tularemia cases in Finland</article-title><source>BMC Medical Research Methodology</source><volume>18</volume><fpage>1</fpage><lpage>8</lpage><pub-id pub-id-type="doi">10.1186/s12874-018-0532-8</pub-id><pub-id pub-id-type="pmid">29976146</pub-id></element-citation></ref><ref id="bib62"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Schneider</surname><given-names>AG</given-names></name><name><surname>Casanovas-Massana</surname><given-names>A</given-names></name><name><surname>Hacker</surname><given-names>KP</given-names></name><name><surname>Wunder</surname><given-names>EA</given-names></name><name><surname>Begon</surname><given-names>M</given-names></name><name><surname>Reis</surname><given-names>MG</given-names></name><name><surname>Childs</surname><given-names>JE</given-names></name><name><surname>Costa</surname><given-names>F</given-names></name><name><surname>Lindow</surname><given-names>JC</given-names></name><name><surname>Ko</surname><given-names>AI</given-names></name></person-group><year iso-8601-date="2018">2018</year><article-title>Quantification of pathogenic Leptospira in the soils of a Brazilian urban slum</article-title><source>PLOS Neglected Tropical Diseases</source><volume>12</volume><elocation-id>e0006415</elocation-id><pub-id pub-id-type="doi">10.1371/journal.pntd.0006415</pub-id><pub-id pub-id-type="pmid">29624576</pub-id></element-citation></ref><ref id="bib63"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Sikes</surname><given-names>RS</given-names></name><name><surname>Gannon</surname><given-names>WL</given-names></name></person-group><year iso-8601-date="2011">2011</year><article-title>Guidelines of the American Society of mammalogists for the use of wild mammals in research</article-title><source>Journal of Mammalogy</source><volume>92</volume><fpage>235</fpage><lpage>253</lpage><pub-id pub-id-type="doi">10.1644/10-MAMM-F-355.1</pub-id></element-citation></ref><ref id="bib64"><element-citation publication-type="web"><person-group person-group-type="author"><name><surname>Smyth</surname><given-names>G</given-names></name><name><surname>Hu</surname><given-names>Y</given-names></name><name><surname>Dunn</surname><given-names>P</given-names></name><name><surname>Phipson</surname><given-names>B</given-names></name><name><surname>Chen</surname><given-names>Y</given-names></name><name><surname>Smyth</surname><given-names>M</given-names></name></person-group><year iso-8601-date="2021">2021</year><article-title>Package’ statmod</article-title><ext-link ext-link-type="uri" xlink:href="https://scholar.google.co.uk/ftp:825//ftp.musicbrainz.org/pub/cran/web/packages/statmod/statmod.pdf">https://scholar.google.co.uk/ftp:825//ftp.musicbrainz.org/pub/cran/web/packages/statmod/statmod.pdf</ext-link><date-in-citation iso-8601-date="2022-05-05">May 5, 2022</date-in-citation></element-citation></ref><ref id="bib65"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Torgerson</surname><given-names>PR</given-names></name><name><surname>Hagan</surname><given-names>JE</given-names></name><name><surname>Costa</surname><given-names>F</given-names></name><name><surname>Calcagno</surname><given-names>J</given-names></name><name><surname>Kane</surname><given-names>M</given-names></name><name><surname>Martinez-Silveira</surname><given-names>MS</given-names></name><name><surname>Goris</surname><given-names>MGA</given-names></name><name><surname>Stein</surname><given-names>C</given-names></name><name><surname>Ko</surname><given-names>AI</given-names></name><name><surname>Abela-Ridder</surname><given-names>B</given-names></name></person-group><year iso-8601-date="2015">2015</year><article-title>Global burden of leptospirosis: estimated in terms of disability adjusted life years</article-title><source>PLOS Neglected Tropical Diseases</source><volume>9</volume><elocation-id>e0004122</elocation-id><pub-id pub-id-type="doi">10.1371/journal.pntd.0004122</pub-id><pub-id pub-id-type="pmid">26431366</pub-id></element-citation></ref><ref id="bib66"><element-citation publication-type="report"><person-group person-group-type="author"><collab>WHO</collab></person-group><year iso-8601-date="2010">2010</year><source>Leptospirosis burden epidemiology reference group (LERG)</source><publisher-loc>Geneva</publisher-loc><publisher-name>World Health Organization</publisher-name></element-citation></ref><ref id="bib67"><element-citation publication-type="software"><person-group person-group-type="author"><name><surname>Wickham</surname><given-names>H</given-names></name></person-group><year iso-8601-date="2017">2017</year><data-title>The tidyverse</data-title><version designator="1.1">1.1</version><source>R Package</source></element-citation></ref><ref id="bib68"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Winters</surname><given-names>AM</given-names></name><name><surname>Bolling</surname><given-names>BG</given-names></name><name><surname>Beaty</surname><given-names>BJ</given-names></name><name><surname>Blair</surname><given-names>CD</given-names></name><name><surname>Eisen</surname><given-names>RJ</given-names></name><name><surname>Meyer</surname><given-names>AM</given-names></name><name><surname>Pape</surname><given-names>WJ</given-names></name><name><surname>Moore</surname><given-names>CG</given-names></name><name><surname>Eisen</surname><given-names>L</given-names></name></person-group><year iso-8601-date="2008">2008</year><article-title>Combining mosquito vector and human disease data for improved assessment of spatial West Nile virus disease risk</article-title><source>The American Journal of Tropical Medicine and Hygiene</source><volume>78</volume><fpage>654</fpage><lpage>665</lpage><pub-id pub-id-type="doi">10.4269/ajtmh.2008.78.654</pub-id><pub-id pub-id-type="pmid">18385365</pub-id></element-citation></ref><ref id="bib69"><element-citation publication-type="software"><person-group person-group-type="author"><name><surname>Wood</surname><given-names>S</given-names></name><name><surname>Wood</surname><given-names>MS</given-names></name></person-group><year iso-8601-date="2015">2015</year><data-title>Package ‘ mgcv</data-title><version designator="1.8-40">1.8-40</version><source>R Package</source></element-citation></ref><ref id="bib70"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Yusof</surname><given-names>MA</given-names></name><name><surname>Mohd-Taib</surname><given-names>FS</given-names></name><name><surname>Ishak</surname><given-names>SN</given-names></name><name><surname>Md-Nor</surname><given-names>S</given-names></name><name><surname>Md-Sah</surname><given-names>SA</given-names></name><name><surname>Mohamed</surname><given-names>NZ</given-names></name><name><surname>Azhari</surname><given-names>NN</given-names></name><name><surname>Neela</surname><given-names>V</given-names></name><name><surname>Sekawi</surname><given-names>Z</given-names></name></person-group><year iso-8601-date="2019">2019</year><article-title>Microhabitat factors influenced the prevalence of pathogenic Leptospira spp in small mammal host</article-title><source>EcoHealth</source><volume>16</volume><fpage>260</fpage><lpage>274</lpage><pub-id pub-id-type="doi">10.1007/s10393-019-01419-1</pub-id><pub-id pub-id-type="pmid">31124020</pub-id></element-citation></ref></ref-list><app-group><app id="appendix-1"><title>Appendix 1</title><sec sec-type="appendix" id="s8"><title>Functional form of continuous explanatory variables</title><fig id="app1fig1" position="float"><label>Appendix 1—figure 1.</label><caption><title>Generalized Additive Model (GAM) partial dependence plots for the unstructured random variation in rattiness,,<inline-formula><mml:math id="inf145"><mml:msub><mml:mover accent="true"><mml:mi>U</mml:mi><mml:mo stretchy="false">^</mml:mo></mml:mover><mml:mi>i</mml:mi></mml:msub></mml:math></inline-formula> plotted against the continuous explanatory variables considered in the analysis (shaded areas correspond to 95% confidence intervals).</title><p>(<bold>A</bold>) elevation relative to the bottom of valley, (<bold>B</bold>) distance to large refuse piles, (<bold>C</bold>) impervious land cover in 20 m radius buffer around sampling point. are estimated using a non-spatial model which excludes all covariates. (<bold>D</bold>) is a variogram computed from <inline-formula><mml:math id="inf146"><mml:msub><mml:mover accent="true"><mml:mi>U</mml:mi><mml:mo stretchy="false">^</mml:mo></mml:mover><mml:mi>i</mml:mi></mml:msub></mml:math></inline-formula> using a non-spatial model that includes all of the covariates; the dashed lines correspond to 95% confidence intervals under the assumption of spatial independence.</p></caption><graphic mimetype="image" mime-subtype="tiff" xlink:href="elife-73120-app1-fig1-v4.tif"/></fig><p>A single knot point for the distance to refuse piles variable was chosen at 50 m to account for the expected decay in the effect of food resources up to a rat home range distance, beyond which little effect would be expected. We did not include an additional knot point at 145 m despite there being a visible change in gradient in <xref ref-type="fig" rid="app1fig1">Appendix 1—figure 1</xref> - panel B for two reasons. Firstly, the home range of Norway rats is estimated to be less than 100 m in these urban settings (<xref ref-type="bibr" rid="bib34">Feng and Himsworth, 2014</xref>; <xref ref-type="bibr" rid="bib23">Davis et al., 1948</xref>; <xref ref-type="bibr" rid="bib12">Byers et al., 2019</xref>), meaning that rat abundance is very unlikely to be affected by the availability of anthropogenic food sources beyond this distance, particularly given the high availability of food across the study area. Secondly, we could offer no scientific rationale for why rattiness would start to increase again beyond 50 m before peaking at a very large distance of 145 m from a refuse pile and decreasing thereafter.</p><p>In contrast, the mechanisms by which rattiness varies with elevation are more complex, with significant changes in the environment occurring at different elevations. For example, the relationship identified in <xref ref-type="fig" rid="app1fig1">Appendix 1—figure 1</xref> - panel A can be explained by the high risk of flooding at the bottom of the valley, which carries resources down to lower elevations (resulting in a peak of rattiness at about 7 m) but makes the very lowest elevations unsuitable for rat burrows. The highest elevations in our study area are close to a main road with food markets where large quantities of food waste are left out in the street for collection. Although there is large uncertainty about this relationship, it is highly possible that this may be driving the positive relationship between 23 m and 40 m.</p><fig id="app1fig2" position="float"><label>Appendix 1—figure 2.</label><caption><title>Generalized Additive Model (GAM) partial dependence plots for human infection risk plotted against the continuous explanatory variables considered in this analysis (shaded areas correspond to 95% confidence intervals).</title><p>(<bold>A</bold>) age, (<bold>B</bold>) household per capita income (in USD), (<bold>C</bold>) years of education, (<bold>D</bold>) household elevation relative to the bottom of valley, (<bold>E</bold>) impervious land cover in 20 m radius buffer around household.</p></caption><graphic mimetype="image" mime-subtype="tiff" xlink:href="elife-73120-app1-fig2-v4.tif"/></fig><p>Single knot points were considered for age at 30 years (<xref ref-type="fig" rid="app1fig2">Appendix 1—figure 2</xref> - panel A), education at 5 years (<xref ref-type="fig" rid="app1fig2">Appendix 1—figure 2</xref> - panel C) and relative elevation at 20 metres (<xref ref-type="fig" rid="app1fig2">Appendix 1—figure 2</xref> - panel D) based on the value of the explanatory variable at which the gradient of the relationship changed in these plots.</p></sec></app><app id="appendix-2"><title>Appendix 2</title><sec sec-type="appendix" id="s9"><title>Model selection tables</title><table-wrap id="app2table1" position="float"><label>Appendix 2—table 1.</label><caption><title>AIC fit of the five highest ranked multivariable rattiness models (’+’ indicates that a variable was selected in the model).</title></caption><table frame="hsides" rules="groups"><thead><tr><th align="left" valign="bottom">Model</th><th align="left" valign="bottom">Dist. refuse (0–50)</th><th align="left" valign="bottom">Dist. refuse (&gt;50)</th><th align="left" valign="bottom">Land cover</th><th align="left" valign="bottom">Elevation (0–8 m)</th><th align="left" valign="bottom">Elevation (8–22 m)</th><th align="left" valign="bottom">Elevation (&gt;22 m)</th><th align="left" valign="bottom">df<xref ref-type="table-fn" rid="app2table1fn1">*</xref></th><th align="left" valign="bottom">AICc <xref ref-type="table-fn" rid="app2table1fn1">*</xref></th></tr></thead><tbody><tr><td align="left" valign="bottom">M1</td><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">8</td><td align="char" char="." valign="bottom">1476.48</td></tr><tr><td align="left" valign="bottom">M2</td><td align="left" valign="bottom"/><td align="left" valign="bottom"/><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">6</td><td align="char" char="." valign="bottom">1479.31</td></tr><tr><td align="left" valign="bottom">M3</td><td align="char" char="." valign="bottom">+</td><td align="left" valign="bottom"/><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">7</td><td align="char" char="." valign="bottom">1481.01</td></tr><tr><td align="left" valign="bottom">M4</td><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">+</td><td align="left" valign="bottom"/><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">7</td><td align="char" char="." valign="bottom">1481.99</td></tr><tr><td align="left" valign="bottom">M5</td><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">+</td><td align="left" valign="bottom"/><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">7</td><td align="char" char="." valign="bottom">1482.97</td></tr></tbody></table><table-wrap-foot><fn id="app2table1fn1"><label>*</label><p>df, degrees of freedom; AICc, corrected Akaike Information Criterion.</p></fn></table-wrap-foot></table-wrap><table-wrap id="app2table2" position="float"><label>Appendix 2—table 2.</label><caption><title>AIC fit of the five highest ranked multivariable human infection models (’+’ indicates that a variable was selected in the model).</title></caption><table frame="hsides" rules="groups"><thead><tr><th align="left" valign="bottom">Model</th><th align="left" valign="bottom">Age (0–30)</th><th align="left" valign="bottom">Age (&gt;30)</th><th align="left" valign="bottom">Sex</th><th align="left" valign="bottom">Valley</th><th align="left" valign="bottom">Floodwater</th><th align="left" valign="bottom">Income</th><th align="left" valign="bottom">Land cover</th><th align="left" valign="bottom">Salesperson</th><th align="left" valign="bottom">Elevation level</th><th align="left" valign="bottom">Rattiness</th><th align="left" valign="bottom">Ratt:Elev</th><th align="left" valign="bottom">df<xref ref-type="table-fn" rid="app2table2fn1">*</xref></th><th align="left" valign="bottom">AICc <xref ref-type="table-fn" rid="app2table2fn1">*</xref></th></tr></thead><tbody><tr><td align="left" valign="bottom">M1</td><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">+</td><td align="left" valign="bottom"/><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">16</td><td align="char" char="." valign="bottom">523.14</td></tr><tr><td align="left" valign="bottom">M2</td><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">+</td><td align="left" valign="bottom"/><td align="left" valign="bottom"/><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">15</td><td align="char" char="." valign="bottom">523.52</td></tr><tr><td align="left" valign="bottom">M3</td><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">17</td><td align="char" char="." valign="bottom">523.72</td></tr><tr><td align="left" valign="bottom">M4</td><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">+</td><td align="left" valign="bottom"/><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">16</td><td align="char" char="." valign="bottom">524.11</td></tr><tr><td align="left" valign="bottom">M5</td><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">+</td><td align="left" valign="bottom"/><td align="char" char="." valign="bottom">+</td><td align="left" valign="bottom"/><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">14</td><td align="char" char="." valign="bottom">525.04</td></tr><tr><td align="left" valign="bottom">M*<sup><xref ref-type="table-fn" rid="app2table2fn2">†</xref></sup></td><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">+</td><td align="left" valign="bottom"/><td align="char" char="." valign="bottom">+</td><td align="char" char="." valign="bottom">+</td><td align="left" valign="bottom"/><td align="left" valign="bottom"/><td align="char" char="." valign="bottom">13</td><td align="char" char="." valign="bottom">532.13</td></tr></tbody></table><table-wrap-foot><fn id="app2table2fn1"><label>*</label><p>df, degrees of freedom; AICc, corrected Akaike Information Criterion</p></fn><fn id="app2table2fn2"><label>†</label><p>Model M* was ranked outside of the top 5 models but is included here for reference to demonstrate the improvement in model fit when rattiness is included.</p></fn></table-wrap-foot></table-wrap></sec></app><app id="appendix-3"><title>Appendix 3</title><sec sec-type="appendix" id="s10"><title>Exploratory multivariable analysis of human risk factors</title><table-wrap id="app3table1" position="float"><label>Appendix 3—table 1.</label><caption><title>Multivariable mixed effects logistic regression analysis of risk factors for leptospiral infection in community members.</title><p>Note: there was missing information for the contact with floodwater question for two individuals and consequently only 1399 participants from 668 households were included in this analysis.</p></caption><table frame="hsides" rules="groups"><thead><tr><th align="left" valign="bottom">Variable</th><th align="left" valign="bottom">OR (95% CI)</th></tr></thead><tbody><tr><td align="left" valign="bottom"><bold>Demographic and social status</bold></td><td align="left" valign="bottom"/></tr><tr><td align="left" valign="bottom">Age (per year)<sup><xref ref-type="table-fn" rid="app3table1fn1">*</xref></sup></td><td align="left" valign="bottom"/></tr><tr><td align="char" char="ndash" valign="bottom"> 0–30 years old</td><td align="char" char="." valign="bottom">1.10 (1.04, 1.16)</td></tr><tr><td align="char" char="." valign="bottom"> &gt;30 years old</td><td align="char" char="." valign="bottom">1.02 (0.96, 1.09)</td></tr><tr><td align="left" valign="bottom">Male gender</td><td align="char" char="." valign="bottom">2.90 (1.59, 5.28)</td></tr><tr><td align="left" valign="bottom">Daily per capita household income (US$/day)</td><td align="char" char="." valign="bottom">0.93 (0.81, 1.06)</td></tr><tr><td align="left" valign="bottom">Valley</td><td align="left" valign="bottom"/></tr><tr><td align="char" char="." valign="bottom"> 1</td><td align="left" valign="bottom">REF</td></tr><tr><td align="char" char="." valign="bottom"> 2</td><td align="char" char="." valign="bottom">3.91 (1.33, 11.68)</td></tr><tr><td align="char" char="." valign="bottom"> 3</td><td align="char" char="." valign="bottom">2.26 (0.74, 6.93)</td></tr><tr><td align="left" valign="bottom"><bold>Household environment</bold></td><td align="left" valign="bottom"/></tr><tr><td align="left" valign="bottom">Relative elevation level</td><td align="left" valign="bottom"/></tr><tr><td align="left" valign="bottom"> High (&gt;15.6 m)</td><td align="left" valign="bottom">REF</td></tr><tr><td align="left" valign="bottom"> Medium (6.7–15.6 m)</td><td align="char" char="." valign="bottom">0.71 (0.30, 1.70)</td></tr><tr><td align="left" valign="bottom"> Low (0–6.7 m)</td><td align="char" char="." valign="bottom">1.08 (0.44, 2.62)</td></tr><tr><td align="left" valign="bottom"><bold>Occupational exposures</bold></td><td align="left" valign="bottom"/></tr><tr><td align="left" valign="bottom">Work as travelling salesperson <sup><xref ref-type="table-fn" rid="app3table1fn2">†</xref></sup></td><td align="char" char="." valign="bottom">3.38 (0.77, 14.87)</td></tr><tr><td align="left" valign="bottom"><bold>Behavioural exposures</bold></td><td align="left" valign="bottom"/></tr><tr><td align="left" valign="bottom">Contact with floodwater in last 6 months</td><td align="left" valign="bottom"/></tr><tr><td align="left" valign="bottom"> Never/rarely</td><td align="left" valign="bottom">REF</td></tr><tr><td align="left" valign="bottom"> Sometimes</td><td align="char" char="." valign="bottom">0.64 (0.28, 1.43)</td></tr><tr><td align="left" valign="bottom"> Frequently</td><td align="char" char="." valign="bottom">2.48 (1.02, 6.02)</td></tr><tr><td align="left" valign="bottom"><bold>Rattiness</bold></td><td align="left" valign="bottom"/></tr><tr><td align="left" valign="bottom"><italic>Rattiness</italic> at high elevation level (per unit <italic>rattiness</italic>)</td><td align="char" char="." valign="bottom">6.92 (1.88, 25.47)</td></tr><tr><td align="left" valign="bottom">Elevation level: Low × <italic>rattiness</italic></td><td align="char" char="." valign="bottom">0.10 (0.02, 0.62)</td></tr><tr><td align="left" valign="bottom">Elevation level: Medium × <italic>rattiness</italic></td><td align="char" char="." valign="bottom">0.15 (0.02, 0.91)</td></tr><tr><td align="left" valign="bottom"><inline-formula><mml:math id="inf147"><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mrow><mml:msup><mml:mi>σ</mml:mi><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:mstyle></mml:math></inline-formula> (variance of household random effect)</td><td align="char" char="." valign="bottom">1.78</td></tr></tbody></table><table-wrap-foot><fn id="app3table1fn1"><label>*</label><p>The effect of age is modelled as a broken linear model with a transition at 30 years old, as informed by the relationship described by Generalized Additive Modelling (<xref ref-type="fig" rid="app1fig2">Appendix 1—figure 2</xref>).</p></fn><fn id="app3table1fn2"><label>†</label><p>Binary variable with reference category of ‘no occupational exposure’.</p></fn></table-wrap-foot></table-wrap></sec></app><app id="appendix-4"><title>Appendix 4</title><sec sec-type="appendix" id="s11"><title>Model fitting</title><p>To fit the joint model, we proceed as follows. Let <inline-formula><mml:math id="inf148"><mml:mrow><mml:mi>W</mml:mi><mml:mo>=</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mi>Y</mml:mi><mml:mo>,</mml:mo><mml:mi>Z</mml:mi><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="inf149"><mml:mrow><mml:mi>θ</mml:mi><mml:mo>=</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>α</mml:mi><mml:mn>1</mml:mn></mml:msub><mml:mo>,</mml:mo><mml:mi mathvariant="normal">…</mml:mi><mml:mo>,</mml:mo><mml:msub><mml:mi>α</mml:mi><mml:mn>5</mml:mn></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi>α</mml:mi><mml:mi>h</mml:mi></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi>σ</mml:mi><mml:mn>1</mml:mn></mml:msub><mml:mo>,</mml:mo><mml:mi mathvariant="normal">…</mml:mi><mml:mo>,</mml:mo><mml:msub><mml:mi>σ</mml:mi><mml:mn>5</mml:mn></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi>β</mml:mi><mml:mi>h</mml:mi></mml:msub><mml:mo>,</mml:mo><mml:mi>γ</mml:mi><mml:mo>,</mml:mo><mml:mi>ξ</mml:mi><mml:mo>,</mml:mo><mml:msup><mml:mi>σ</mml:mi><mml:mn>2</mml:mn></mml:msup><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="inf150"><mml:mrow><mml:mi>ω</mml:mi><mml:mo>=</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>β</mml:mi><mml:mi>r</mml:mi></mml:msub><mml:mo>,</mml:mo><mml:mi>ϕ</mml:mi><mml:mo>,</mml:mo><mml:mi>ψ</mml:mi><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:math></inline-formula> be the vector of unknown parameters associated with <inline-formula><mml:math id="inf151"><mml:mrow><mml:mo stretchy="false">[</mml:mo><mml:mi>R</mml:mi><mml:mo stretchy="false">]</mml:mo></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="inf152"><mml:mrow><mml:mo stretchy="false">[</mml:mo><mml:mrow><mml:mi>W</mml:mi><mml:mo lspace="2.5pt" rspace="2.5pt" stretchy="false">|</mml:mo><mml:mi>R</mml:mi></mml:mrow><mml:mo stretchy="false">]</mml:mo></mml:mrow></mml:math></inline-formula>. The likelihood function is then given by<disp-formula id="equ6"><label>(5)</label><mml:math id="m6"><mml:mrow><mml:mrow><mml:mi>L</mml:mi><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mi>θ</mml:mi><mml:mo>,</mml:mo><mml:mi>ω</mml:mi><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow><mml:mo>=</mml:mo><mml:mrow><mml:mo stretchy="false">[</mml:mo><mml:mi>W</mml:mi><mml:mo>;</mml:mo><mml:mi>θ</mml:mi><mml:mo>,</mml:mo><mml:mi>ω</mml:mi><mml:mo stretchy="false">]</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:mrow><mml:msub><mml:mo largeop="true" symmetric="true">∫</mml:mo><mml:msup><mml:mi>ℝ</mml:mi><mml:mi>N</mml:mi></mml:msup></mml:msub><mml:mrow><mml:mrow><mml:mo stretchy="false">[</mml:mo><mml:mi>R</mml:mi><mml:mo>;</mml:mo><mml:mi>ω</mml:mi><mml:mo stretchy="false">]</mml:mo></mml:mrow><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">[</mml:mo><mml:mrow><mml:mi>W</mml:mi><mml:mo lspace="2.5pt" rspace="2.5pt" stretchy="false">|</mml:mo><mml:mrow><mml:mi>R</mml:mi><mml:mo>;</mml:mo><mml:mi>θ</mml:mi></mml:mrow></mml:mrow><mml:mo rspace="4.7pt" stretchy="false">]</mml:mo></mml:mrow><mml:mo>⁢</mml:mo><mml:mrow><mml:mo rspace="0pt">d</mml:mo><mml:mi>R</mml:mi></mml:mrow></mml:mrow></mml:mrow></mml:mrow></mml:math></disp-formula></p><p>The integral in <xref ref-type="disp-formula" rid="equ6">Equation 5</xref> cannot be solved analytically so we approximate it using Monte Carlo methods. Specifically, let <inline-formula><mml:math id="inf153"><mml:msub><mml:mi>θ</mml:mi><mml:mn>0</mml:mn></mml:msub></mml:math></inline-formula> and <inline-formula><mml:math id="inf154"><mml:msub><mml:mi>ω</mml:mi><mml:mn>0</mml:mn></mml:msub></mml:math></inline-formula> be our initial best guesses for θ and ω, respectively. Since <inline-formula><mml:math id="inf155"><mml:mrow><mml:mrow><mml:mrow><mml:mo stretchy="false">[</mml:mo><mml:mi>R</mml:mi><mml:mo>;</mml:mo><mml:mi>ω</mml:mi><mml:mo stretchy="false">]</mml:mo></mml:mrow><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">[</mml:mo><mml:mrow><mml:mi>W</mml:mi><mml:mo lspace="2.5pt" rspace="2.5pt" stretchy="false">|</mml:mo><mml:mrow><mml:mi>R</mml:mi><mml:mo>;</mml:mo><mml:mi>θ</mml:mi></mml:mrow></mml:mrow><mml:mo stretchy="false">]</mml:mo></mml:mrow></mml:mrow><mml:mo>∝</mml:mo><mml:mrow><mml:mo stretchy="false">[</mml:mo><mml:mrow><mml:mi>R</mml:mi><mml:mo lspace="2.5pt" rspace="2.5pt" stretchy="false">|</mml:mo><mml:mrow><mml:mi>W</mml:mi><mml:mo>;</mml:mo><mml:mi>ω</mml:mi></mml:mrow></mml:mrow><mml:mo stretchy="false">]</mml:mo></mml:mrow></mml:mrow></mml:math></inline-formula> we re-write the integral in <xref ref-type="disp-formula" rid="equ6">Equation 5</xref> using an importance sampling distribution <inline-formula><mml:math id="inf156"><mml:mrow><mml:mrow><mml:mo stretchy="false">[</mml:mo><mml:mi>R</mml:mi><mml:mo>;</mml:mo><mml:msub><mml:mi>ω</mml:mi><mml:mn>0</mml:mn></mml:msub><mml:mo stretchy="false">]</mml:mo></mml:mrow><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">[</mml:mo><mml:mrow><mml:mi>W</mml:mi><mml:mo lspace="2.5pt" rspace="2.5pt" stretchy="false">|</mml:mo><mml:mrow><mml:mi>R</mml:mi><mml:mo>;</mml:mo><mml:msub><mml:mi>θ</mml:mi><mml:mn>0</mml:mn></mml:msub></mml:mrow></mml:mrow><mml:mo stretchy="false">]</mml:mo></mml:mrow></mml:mrow></mml:math></inline-formula> to give<disp-formula id="equ7"><label>(6)</label><mml:math id="m7"><mml:mrow><mml:mtable columnalign="left left" rowspacing="4pt" columnspacing="1em"><mml:mtr><mml:mtd><mml:mi>L</mml:mi><mml:mo stretchy="false">(</mml:mo><mml:mi>θ</mml:mi><mml:mo>,</mml:mo><mml:mi>ω</mml:mi><mml:mo stretchy="false">)</mml:mo><mml:mo>∝</mml:mo><mml:msub><mml:mo>∫</mml:mo><mml:mrow><mml:msup><mml:mrow><mml:mi mathvariant="double-struck">R</mml:mi></mml:mrow><mml:mrow><mml:mi>N</mml:mi></mml:mrow></mml:msup></mml:mrow></mml:msub><mml:mfrac><mml:mrow><mml:mo stretchy="false">[</mml:mo><mml:mi>R</mml:mi><mml:mo>;</mml:mo><mml:mi>ω</mml:mi><mml:mo stretchy="false">]</mml:mo><mml:mo stretchy="false">[</mml:mo><mml:mi>W</mml:mi><mml:mrow><mml:mo stretchy="false">|</mml:mo></mml:mrow><mml:mi>R</mml:mi><mml:mo>;</mml:mo><mml:mi>θ</mml:mi><mml:mo stretchy="false">]</mml:mo></mml:mrow><mml:mrow><mml:mo stretchy="false">[</mml:mo><mml:mi>R</mml:mi><mml:mo>;</mml:mo><mml:msub><mml:mi>ω</mml:mi><mml:mrow><mml:mn>0</mml:mn></mml:mrow></mml:msub><mml:mo stretchy="false">]</mml:mo><mml:mo stretchy="false">[</mml:mo><mml:mi>W</mml:mi><mml:mrow><mml:mo stretchy="false">|</mml:mo></mml:mrow><mml:mi>R</mml:mi><mml:mo>;</mml:mo><mml:msub><mml:mi>θ</mml:mi><mml:mrow><mml:mn>0</mml:mn></mml:mrow></mml:msub><mml:mo stretchy="false">]</mml:mo></mml:mrow></mml:mfrac><mml:mo stretchy="false">[</mml:mo><mml:mi>R</mml:mi><mml:mrow><mml:mo stretchy="false">|</mml:mo></mml:mrow><mml:mi>W</mml:mi><mml:mo>;</mml:mo><mml:msub><mml:mi>θ</mml:mi><mml:mrow><mml:mn>0</mml:mn></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi>ω</mml:mi><mml:mrow><mml:mn>0</mml:mn></mml:mrow></mml:msub><mml:mo stretchy="false">]</mml:mo><mml:mtext> </mml:mtext><mml:mi>d</mml:mi><mml:mi>R</mml:mi></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mo>=</mml:mo><mml:mi>E</mml:mi><mml:mrow><mml:mo>[</mml:mo><mml:mfrac><mml:mrow><mml:mo stretchy="false">[</mml:mo><mml:mi>R</mml:mi><mml:mo>;</mml:mo><mml:mi>ω</mml:mi><mml:mo stretchy="false">]</mml:mo><mml:mo stretchy="false">[</mml:mo><mml:mi>W</mml:mi><mml:mrow><mml:mo stretchy="false">|</mml:mo></mml:mrow><mml:mi>R</mml:mi><mml:mo>;</mml:mo><mml:mi>θ</mml:mi><mml:mo stretchy="false">]</mml:mo></mml:mrow><mml:mrow><mml:mo stretchy="false">[</mml:mo><mml:mi>R</mml:mi><mml:mo>;</mml:mo><mml:msub><mml:mi>ω</mml:mi><mml:mrow><mml:mn>0</mml:mn></mml:mrow></mml:msub><mml:mo stretchy="false">]</mml:mo><mml:mo stretchy="false">[</mml:mo><mml:mi>W</mml:mi><mml:mrow><mml:mo stretchy="false">|</mml:mo></mml:mrow><mml:mi>R</mml:mi><mml:mo>;</mml:mo><mml:msub><mml:mi>θ</mml:mi><mml:mrow><mml:mn>0</mml:mn></mml:mrow></mml:msub><mml:mo stretchy="false">]</mml:mo></mml:mrow></mml:mfrac><mml:mo>]</mml:mo></mml:mrow><mml:mo>,</mml:mo></mml:mtd></mml:mtr></mml:mtable></mml:mrow></mml:math></disp-formula></p><p>where the expectation is taken with respect to the distribution of <inline-formula><mml:math id="inf157"><mml:mrow><mml:mo stretchy="false">[</mml:mo><mml:mrow><mml:mi>R</mml:mi><mml:mo lspace="2.5pt" rspace="2.5pt" stretchy="false">|</mml:mo><mml:mrow><mml:mi>W</mml:mi><mml:mo>;</mml:mo><mml:msub><mml:mi>ω</mml:mi><mml:mn>0</mml:mn></mml:msub></mml:mrow></mml:mrow><mml:mo stretchy="false">]</mml:mo></mml:mrow></mml:math></inline-formula>.</p><p>Based on <xref ref-type="disp-formula" rid="equ7">Equation 6</xref>, we then approximate <xref ref-type="disp-formula" rid="equ6">Equation 5</xref> with<disp-formula id="equ8"><label>(7)</label><mml:math id="m8"><mml:mrow><mml:mrow><mml:mi>L</mml:mi><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mi>θ</mml:mi><mml:mo>,</mml:mo><mml:mi>ω</mml:mi><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow><mml:mo>≈</mml:mo><mml:mrow><mml:mfrac><mml:mn>1</mml:mn><mml:mi>B</mml:mi></mml:mfrac><mml:mo>⁢</mml:mo><mml:mrow><mml:munderover><mml:mo largeop="true" movablelimits="false" symmetric="true">∑</mml:mo><mml:mrow><mml:mi>b</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mi>B</mml:mi></mml:munderover><mml:mfrac><mml:mrow><mml:mrow><mml:mo stretchy="false">[</mml:mo><mml:msub><mml:mi>r</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mi>b</mml:mi><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:msub><mml:mo>;</mml:mo><mml:mi>ω</mml:mi><mml:mo stretchy="false">]</mml:mo></mml:mrow><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">[</mml:mo><mml:mrow><mml:mi>W</mml:mi><mml:mo lspace="2.5pt" rspace="2.5pt" stretchy="false">|</mml:mo><mml:mrow><mml:msub><mml:mi>r</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mi>b</mml:mi><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:msub><mml:mo>;</mml:mo><mml:mi>θ</mml:mi></mml:mrow></mml:mrow><mml:mo stretchy="false">]</mml:mo></mml:mrow></mml:mrow><mml:mrow><mml:mrow><mml:mo stretchy="false">[</mml:mo><mml:msub><mml:mi>r</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mi>b</mml:mi><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:msub><mml:mo>;</mml:mo><mml:msub><mml:mi>ω</mml:mi><mml:mn>0</mml:mn></mml:msub><mml:mo stretchy="false">]</mml:mo></mml:mrow><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">[</mml:mo><mml:mrow><mml:mi>W</mml:mi><mml:mo lspace="2.5pt" rspace="2.5pt" stretchy="false">|</mml:mo><mml:mrow><mml:msub><mml:mi>r</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mi>b</mml:mi><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:msub><mml:mo>;</mml:mo><mml:msub><mml:mi>θ</mml:mi><mml:mn>0</mml:mn></mml:msub></mml:mrow></mml:mrow><mml:mo stretchy="false">]</mml:mo></mml:mrow></mml:mrow></mml:mfrac></mml:mrow></mml:mrow></mml:mrow></mml:math></disp-formula></p><p>where <inline-formula><mml:math id="inf158"><mml:msub><mml:mi>r</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mi>b</mml:mi><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:msub></mml:math></inline-formula> is the <inline-formula><mml:math id="inf159"><mml:mi>b</mml:mi></mml:math></inline-formula>-th sample from <inline-formula><mml:math id="inf160"><mml:mrow><mml:mo stretchy="false">[</mml:mo><mml:mrow><mml:mi>R</mml:mi><mml:mo lspace="2.5pt" rspace="2.5pt" stretchy="false">|</mml:mo><mml:mrow><mml:mi>W</mml:mi><mml:mo>;</mml:mo><mml:msub><mml:mi>ω</mml:mi><mml:mn>0</mml:mn></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi>θ</mml:mi><mml:mn>0</mml:mn></mml:msub></mml:mrow></mml:mrow><mml:mo stretchy="false">]</mml:mo></mml:mrow></mml:math></inline-formula>. To obtain the maximum likelihood estimates for θ and ω, we maximize <xref ref-type="disp-formula" rid="equ8">Equation 7</xref> using numerical optimization. To simulate from <inline-formula><mml:math id="inf161"><mml:mrow><mml:mo stretchy="false">[</mml:mo><mml:mrow><mml:mi>R</mml:mi><mml:mo lspace="2.5pt" rspace="2.5pt" stretchy="false">|</mml:mo><mml:mrow><mml:mi>W</mml:mi><mml:mo>;</mml:mo><mml:msub><mml:mi>θ</mml:mi><mml:mn>0</mml:mn></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi>ω</mml:mi><mml:mn>0</mml:mn></mml:msub></mml:mrow></mml:mrow><mml:mo stretchy="false">]</mml:mo></mml:mrow></mml:math></inline-formula>, we use the Laplace sampling algorithm described in detail by <xref ref-type="bibr" rid="bib16">Christensen, 2004</xref> and <xref ref-type="bibr" rid="bib36">Giorgi and Diggle, 2017</xref>. We draw 110,000 samples from <inline-formula><mml:math id="inf162"><mml:mrow><mml:mo stretchy="false">[</mml:mo><mml:mrow><mml:mi>R</mml:mi><mml:mo lspace="2.5pt" rspace="2.5pt" stretchy="false">|</mml:mo><mml:mrow><mml:mi>W</mml:mi><mml:mo>;</mml:mo><mml:msub><mml:mi>θ</mml:mi><mml:mn>0</mml:mn></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi>ω</mml:mi><mml:mn>0</mml:mn></mml:msub></mml:mrow></mml:mrow><mml:mo stretchy="false">]</mml:mo></mml:mrow></mml:math></inline-formula>, with a burn in of 10,000 samples and thin by 10%, leaving 10,000 MCMC samples.</p><p>To improve the approximation of the likelihood function, we also update our guesses <inline-formula><mml:math id="inf163"><mml:msub><mml:mi>ω</mml:mi><mml:mn>0</mml:mn></mml:msub></mml:math></inline-formula> and <inline-formula><mml:math id="inf164"><mml:msub><mml:mi>θ</mml:mi><mml:mn>0</mml:mn></mml:msub></mml:math></inline-formula> by plugging their estimated values into the denominator of <xref ref-type="disp-formula" rid="equ8">Equation 7</xref> and iterate its maximization until convergence.</p></sec></app><app id="appendix-5"><title>Appendix 5</title><sec sec-type="appendix" id="s12"><title>Baseline cohort characteristics</title><table-wrap id="app5table1" position="float"><label>Appendix 5—table 1.</label><caption><title>Summary of demographic, socioeconomic and environmental risk factors.</title></caption><table frame="hsides" rules="groups"><thead><tr><th align="left" valign="bottom">Variable</th><th align="left" valign="bottom">No. or Median (% or IQR) <xref ref-type="table-fn" rid="app5table1fn1">*</xref></th></tr></thead><tbody><tr><td align="left" valign="bottom"><bold>Demographic and social status</bold></td><td align="left" valign="bottom"/></tr><tr><td align="left" valign="bottom">Age (years)</td><td align="char" char="." valign="bottom">27 (15–41)</td></tr><tr><td align="left" valign="bottom">Male gender</td><td align="char" char="." valign="bottom">597 (42.6%)</td></tr><tr><td align="left" valign="bottom">Daily per capita household income (US$/day)</td><td align="char" char="." valign="bottom">1.6 (0.8–2.8)</td></tr><tr><td align="left" valign="bottom"> Valley 1</td><td align="char" char="." valign="bottom">259 (18.5%)</td></tr><tr><td align="left" valign="bottom"> Valley 2</td><td align="char" char="." valign="bottom">557 (39.8%)</td></tr><tr><td align="left" valign="bottom"> Valley 3</td><td align="char" char="." valign="bottom">585 (41.8%)</td></tr><tr><td align="left" valign="bottom"> Literacy</td><td align="char" char="." valign="bottom">1125 (80.3%)</td></tr><tr><td align="left" valign="bottom">Education (years)</td><td align="char" char="." valign="bottom">6 (4-9)</td></tr><tr><td align="left" valign="bottom"><bold>Household environment</bold></td><td align="left" valign="bottom"/></tr><tr><td align="left" valign="bottom">Impervious land cover (%)</td><td align="char" char="." valign="bottom">49.6 (35.1–70.6)</td></tr><tr><td align="left" valign="bottom">Relative elevation (metres)</td><td align="char" char="." valign="bottom">11.0 (5.9–16.3)</td></tr><tr><td align="left" valign="bottom">Elevation level</td><td align="left" valign="bottom"/></tr><tr><td align="left" valign="bottom"> Low (0–6.7 m)</td><td align="char" char="." valign="bottom">474 (33.8%)</td></tr><tr><td align="left" valign="bottom"> Medium (6.7–15.6 m)</td><td align="char" char="." valign="bottom">524 (37.4%)</td></tr><tr><td align="left" valign="bottom"> High (&gt;15.6 m)</td><td align="char" char="." valign="bottom">403 (28.8%)</td></tr><tr><td align="left" valign="bottom">Open sewer within 10 m</td><td align="char" char="." valign="bottom">926 (66.1%)</td></tr><tr><td align="left" valign="bottom">Unprotected from open sewer</td><td align="char" char="." valign="bottom">666 (47.6%)</td></tr><tr><td align="left" valign="bottom">Live on hillside</td><td align="char" char="." valign="bottom">453 (32.4%)</td></tr><tr><td align="left" valign="bottom"><bold>Occupational exposures</bold></td><td align="left" valign="bottom"/></tr><tr><td align="left" valign="bottom">Work in construction</td><td align="char" char="." valign="bottom">105 (7.5%)</td></tr><tr><td align="left" valign="bottom">Work as travelling salesperson</td><td align="char" char="." valign="bottom">24 (1.7%)</td></tr><tr><td align="left" valign="bottom">Work in refuse collection</td><td align="char" char="." valign="bottom">61 (4.4%)</td></tr><tr><td align="left" valign="bottom">Work involves contact with mud</td><td align="char" char="." valign="bottom">27 (1.9%)</td></tr><tr><td align="left" valign="bottom">Work involves contact with floodwater</td><td align="char" char="." valign="bottom">23 (1.6%)</td></tr><tr><td align="left" valign="bottom">Work involves contact with sewer water</td><td align="char" char="." valign="bottom">16 (1.1%)</td></tr><tr><td align="left" valign="bottom"><bold>Behavioural exposures</bold></td><td align="left" valign="bottom"/></tr><tr><td align="left" valign="bottom" colspan="2">Contact with floodwater in last 6 months</td></tr><tr><td align="left" valign="bottom"> Never/rarely</td><td align="char" char="." valign="bottom">986 (70.5%)</td></tr><tr><td align="left" valign="bottom"> Sometimes</td><td align="char" char="." valign="bottom">299 (21.4%)</td></tr><tr><td align="left" valign="bottom"> Frequently</td><td align="char" char="." valign="bottom">114 (8.1%)</td></tr><tr><td align="left" valign="bottom" colspan="2">Contact with sewer water in last 6 months</td></tr><tr><td align="left" valign="bottom"> Never/rarely</td><td align="char" char="." valign="bottom">1120 (80.2%)</td></tr><tr><td align="left" valign="bottom"> Sometimes</td><td align="char" char="." valign="bottom">180 (12.9%)</td></tr><tr><td align="left" valign="bottom"> Frequently</td><td align="char" char="." valign="bottom">97 (6.9%)</td></tr></tbody></table><table-wrap-foot><fn id="app5table1fn1"><label>*</label><p> No., number; IQR, interquartile range; Percentages are calculated without missing values. All variables had ≤ 5 missing values.</p></fn></table-wrap-foot></table-wrap></sec></app><app id="appendix-6"><title>Appendix 6</title><sec sec-type="appendix" id="s13"><title>Sensitivity analysis for disturbed trap modelling assumption</title><p>In the rattiness-infection framework we assumed that a trap was disturbed when it was found closed without a rat and set <inline-formula><mml:math id="inf165"><mml:mrow><mml:mi>t</mml:mi><mml:mo>=</mml:mo><mml:mn>0.5</mml:mn></mml:mrow></mml:math></inline-formula> (see ‘Rat abundance outcomes’) in the equation for the probability of capturing a rat<disp-formula id="equ9"><mml:math id="m9"><mml:mrow><mml:mrow><mml:mn>1</mml:mn><mml:mo>-</mml:mo><mml:mrow><mml:mi>exp</mml:mi><mml:mo>⁡</mml:mo><mml:mrow><mml:mo stretchy="false">{</mml:mo><mml:mrow><mml:mo>-</mml:mo><mml:mrow><mml:msub><mml:mi>t</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo>⁢</mml:mo><mml:msub><mml:mi>μ</mml:mi><mml:mn>1</mml:mn></mml:msub><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:mrow><mml:mo stretchy="false">}</mml:mo></mml:mrow></mml:mrow></mml:mrow><mml:mo>.</mml:mo></mml:mrow></mml:math></disp-formula></p><p>This occurred in 554 (36.6%) out of 1,512 trapping-days. To ascertain the potential impact of this on model parameter estimates we conducted a sensitivity analysis as follows:</p><list list-type="order"><list-item><p>Draw values for t from <inline-formula><mml:math id="inf166"><mml:mrow><mml:mi>U</mml:mi><mml:mo>⁢</mml:mo><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mn>0</mml:mn><mml:mo>,</mml:mo><mml:mn>1</mml:mn><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:math></inline-formula> for all trap observations that were found closed.</p></list-item><list-item><p>Fit a simplified rattiness model with covariates that did not account for spatial correlation by setting <inline-formula><mml:math id="inf167"><mml:mrow><mml:mi>ψ</mml:mi><mml:mo>=</mml:mo><mml:mn>0</mml:mn></mml:mrow></mml:math></inline-formula> in <xref ref-type="disp-formula" rid="equ2">Equation 2</xref> in ‘Rattiness’.</p></list-item><list-item><p>Repeat steps 1–2 a total of 1,000 times.</p></list-item><list-item><p>Estimate the between-imputation standard error for each parameter, defined as:<disp-formula id="equ10"><mml:math id="m10"><mml:mrow><mml:mrow><mml:mi>S</mml:mi><mml:mo>⁢</mml:mo><mml:msub><mml:mi>E</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>⁢</mml:mo><mml:mi>m</mml:mi><mml:mo>⁢</mml:mo><mml:mi>p</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mo>=</mml:mo><mml:msqrt><mml:mfrac><mml:mrow><mml:msubsup><mml:mo largeop="true" symmetric="true">∑</mml:mo><mml:mrow><mml:mi>i</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mi>B</mml:mi></mml:msubsup><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msub><mml:mi>θ</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo>-</mml:mo><mml:msup><mml:mover accent="true"><mml:mi>θ</mml:mi><mml:mo stretchy="false">¯</mml:mo></mml:mover><mml:mn>2</mml:mn></mml:msup></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow><mml:mrow><mml:mi>B</mml:mi><mml:mo>-</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:mfrac></mml:msqrt></mml:mrow></mml:math></disp-formula></p><p>for imputation <inline-formula><mml:math id="inf168"><mml:mi>i</mml:mi></mml:math></inline-formula> of a total <inline-formula><mml:math id="inf169"><mml:mi>B</mml:mi></mml:math></inline-formula> imputed datasets.</p></list-item></list><p>The results for each parameter can be seen in <xref ref-type="table" rid="app6table1">Appendix 6—table 1</xref> below. Estimated between-imputation standard errors were small relative to parameter estimates, indicating that uncertainty due to the missing trap disturbance information is unlikely to have significantly affected parameter estimates in the full rattiness-infection model.</p><table-wrap id="app6table1" position="float"><label>Appendix 6—table 1.</label><caption><title>Trap disturbance sensitivity analysis: non-spatial rattiness model parameter estimates and between-imputation standard errors.</title></caption><table frame="hsides" rules="groups"><thead><tr><th align="left" valign="bottom">Parameter</th><th align="left" valign="bottom">Estimate</th><th align="left" valign="bottom"><inline-formula><mml:math id="inf170"><mml:mrow><mml:mi>S</mml:mi><mml:mo>⁢</mml:mo><mml:msub><mml:mi>E</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>⁢</mml:mo><mml:mi>m</mml:mi><mml:mo>⁢</mml:mo><mml:mi>p</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula></th></tr></thead><tbody><tr><td align="left" valign="bottom"><inline-formula><mml:math id="inf171"><mml:msub><mml:mi>α</mml:mi><mml:mrow><mml:mi>t</mml:mi><mml:mo>⁢</mml:mo><mml:mi>r</mml:mi><mml:mo>⁢</mml:mo><mml:mi>a</mml:mi><mml:mo>⁢</mml:mo><mml:mi>p</mml:mi><mml:mo>⁢</mml:mo><mml:mi>s</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula></td><td align="char" char="." valign="bottom">–2.8274</td><td align="char" char="." valign="bottom">0.0128</td></tr><tr><td align="left" valign="bottom"><inline-formula><mml:math id="inf172"><mml:msub><mml:mi>α</mml:mi><mml:mrow><mml:mi>p</mml:mi><mml:mo>⁢</mml:mo><mml:mi>l</mml:mi><mml:mo>⁢</mml:mo><mml:mi>a</mml:mi><mml:mo>⁢</mml:mo><mml:mi>t</mml:mi><mml:mo>⁢</mml:mo><mml:mi>e</mml:mi><mml:mo>⁢</mml:mo><mml:mi>s</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula></td><td align="char" char="." valign="bottom">–1.9058</td><td align="char" char="." valign="bottom">0.0004</td></tr><tr><td align="left" valign="bottom"><inline-formula><mml:math id="inf173"><mml:msub><mml:mi>α</mml:mi><mml:mrow><mml:mi>b</mml:mi><mml:mo>⁢</mml:mo><mml:mi>u</mml:mi><mml:mo>⁢</mml:mo><mml:mi>r</mml:mi><mml:mo>⁢</mml:mo><mml:mi>r</mml:mi><mml:mo>⁢</mml:mo><mml:mi>o</mml:mi><mml:mo>⁢</mml:mo><mml:mi>w</mml:mi><mml:mo>⁢</mml:mo><mml:mi>s</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula></td><td align="char" char="." valign="bottom">–1.3794</td><td align="char" char="." valign="bottom">0.0008</td></tr><tr><td align="left" valign="bottom"><inline-formula><mml:math id="inf174"><mml:msub><mml:mi>α</mml:mi><mml:mrow><mml:mi>f</mml:mi><mml:mo>⁢</mml:mo><mml:mi>a</mml:mi><mml:mo>⁢</mml:mo><mml:mi>e</mml:mi><mml:mo>⁢</mml:mo><mml:mi>c</mml:mi><mml:mo>⁢</mml:mo><mml:mi>e</mml:mi><mml:mo>⁢</mml:mo><mml:mi>s</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula></td><td align="char" char="." valign="bottom">–2.8617</td><td align="char" char="." valign="bottom">0.0027</td></tr><tr><td align="left" valign="bottom"><inline-formula><mml:math id="inf175"><mml:msub><mml:mi>α</mml:mi><mml:mrow><mml:mi>t</mml:mi><mml:mo>⁢</mml:mo><mml:mi>r</mml:mi><mml:mo>⁢</mml:mo><mml:mi>a</mml:mi><mml:mo>⁢</mml:mo><mml:mi>i</mml:mi><mml:mo>⁢</mml:mo><mml:mi>l</mml:mi><mml:mo>⁢</mml:mo><mml:mi>s</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula></td><td align="char" char="." valign="bottom">–2.1538</td><td align="char" char="." valign="bottom">0.0023</td></tr><tr><td align="left" valign="bottom"><inline-formula><mml:math id="inf176"><mml:msub><mml:mi>σ</mml:mi><mml:mrow><mml:mi>t</mml:mi><mml:mo>⁢</mml:mo><mml:mi>r</mml:mi><mml:mo>⁢</mml:mo><mml:mi>a</mml:mi><mml:mo>⁢</mml:mo><mml:mi>p</mml:mi><mml:mo>⁢</mml:mo><mml:mi>s</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula></td><td align="char" char="." valign="bottom">0.7010</td><td align="char" char="." valign="bottom">0.0120</td></tr><tr><td align="left" valign="bottom"><inline-formula><mml:math id="inf177"><mml:msub><mml:mi>σ</mml:mi><mml:mrow><mml:mi>p</mml:mi><mml:mo>⁢</mml:mo><mml:mi>l</mml:mi><mml:mo>⁢</mml:mo><mml:mi>a</mml:mi><mml:mo>⁢</mml:mo><mml:mi>t</mml:mi><mml:mo>⁢</mml:mo><mml:mi>e</mml:mi><mml:mo>⁢</mml:mo><mml:mi>s</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula></td><td align="char" char="." valign="bottom">2.4016</td><td align="char" char="." valign="bottom">0.0004</td></tr><tr><td align="left" valign="bottom"><inline-formula><mml:math id="inf178"><mml:msub><mml:mi>σ</mml:mi><mml:mrow><mml:mi>b</mml:mi><mml:mo>⁢</mml:mo><mml:mi>u</mml:mi><mml:mo>⁢</mml:mo><mml:mi>r</mml:mi><mml:mo>⁢</mml:mo><mml:mi>r</mml:mi><mml:mo>⁢</mml:mo><mml:mi>o</mml:mi><mml:mo>⁢</mml:mo><mml:mi>w</mml:mi><mml:mo>⁢</mml:mo><mml:mi>s</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula></td><td align="char" char="." valign="bottom">1.3820</td><td align="char" char="." valign="bottom">0.0008</td></tr><tr><td align="left" valign="bottom"><inline-formula><mml:math id="inf179"><mml:msub><mml:mi>σ</mml:mi><mml:mrow><mml:mi>f</mml:mi><mml:mo>⁢</mml:mo><mml:mi>a</mml:mi><mml:mo>⁢</mml:mo><mml:mi>e</mml:mi><mml:mo>⁢</mml:mo><mml:mi>c</mml:mi><mml:mo>⁢</mml:mo><mml:mi>e</mml:mi><mml:mo>⁢</mml:mo><mml:mi>s</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula></td><td align="char" char="." valign="bottom">2.6704</td><td align="char" char="." valign="bottom">0.0031</td></tr><tr><td align="left" valign="bottom"><inline-formula><mml:math id="inf180"><mml:msub><mml:mi>σ</mml:mi><mml:mrow><mml:mi>t</mml:mi><mml:mo>⁢</mml:mo><mml:mi>r</mml:mi><mml:mo>⁢</mml:mo><mml:mi>a</mml:mi><mml:mo>⁢</mml:mo><mml:mi>i</mml:mi><mml:mo>⁢</mml:mo><mml:mi>l</mml:mi><mml:mo>⁢</mml:mo><mml:mi>s</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula></td><td align="char" char="." valign="bottom">2.6431</td><td align="char" char="." valign="bottom">0.0036</td></tr><tr><td align="left" valign="bottom" colspan="3">Relative elevation (per 1 m increase)<sup>2</sup></td></tr><tr><td align="char" char="ndash" valign="bottom"> 0–8 m</td><td align="char" char="." valign="bottom">0.0525</td><td align="char" char="." valign="bottom">0.0001</td></tr><tr><td align="char" char="ndash" valign="bottom"> 8–22 m</td><td align="char" char="." valign="bottom">–0.0583</td><td align="char" char="." valign="bottom">0.0001</td></tr><tr><td align="char" char="." valign="bottom"> &gt;22 m</td><td align="char" char="." valign="bottom">0.1112</td><td align="char" char="." valign="bottom">0.0002</td></tr><tr><td align="left" valign="bottom" colspan="3">Distance to large refuse piles (per 10 m increase)<sup>3</sup></td></tr><tr><td align="char" char="ndash" valign="bottom"> 0–50 m</td><td align="char" char="." valign="bottom">–0.1090</td><td align="char" char="." valign="bottom">0.0002</td></tr><tr><td align="char" char="." valign="bottom"> &gt;50 m</td><td align="char" char="." valign="bottom">0.0405</td><td align="char" char="." valign="bottom">0.0001</td></tr><tr><td align="left" valign="bottom">Impervious land cover (per 10% increase)</td><td align="char" char="." valign="bottom">–0.0592</td><td align="char" char="." valign="bottom">0.0001</td></tr></tbody></table></table-wrap></sec></app><app id="appendix-7"><title>Appendix 7</title><sec sec-type="appendix" id="s14"><title>Residual diagnostics</title><p>To examine the fit of the full rattiness-infection model to the human infection data, a formal diagnostic investigation was conducted using randomized quantile residuals (<xref ref-type="bibr" rid="bib28">Dunn and Smyth, 1996</xref>; <xref ref-type="bibr" rid="bib64">Smyth et al., 2021</xref>). The residual plots in <xref ref-type="fig" rid="app7fig1">Appendix 7—figure 1</xref> exhibit no trends between quantile residuals and fitted values (Panel A) or variables in the model (Panels B-H).</p><fig id="app7fig1" position="float"><label>Appendix 7—figure 1.</label><caption><title>Residual diagnostic plots showing randomised quantile residuals plotted against: (<bold>A</bold>) fitted values; (<bold>B–H</bold>) variables in the model.</title></caption><graphic mimetype="image" mime-subtype="tiff" xlink:href="elife-73120-app7-fig1-v4.tif"/></fig></sec></app><app id="appendix-8"><title>Appendix 8</title><sec sec-type="appendix" id="s15"><title>Model building guidance</title><p>To help guide the model building process for future users of the rattiness-infection framework we outline the following key steps (to be viewed with the available R code at <ext-link ext-link-type="uri" xlink:href="https://github.com/maxeyre/Rattiness-infection-framework">https://github.com/maxeyre/Rattiness-infection-framework</ext-link>):</p><list list-type="order"><list-item><p>Set up the rat (or any other animal reservoir) component of the model [script: 1-rat-explore.R]:</p><list list-type="alpha-lower"><list-item><p>Fit the non-spatial rattiness model with no explanatory variables and predict rattiness at all sampled rat locations.</p></list-item><list-item><p>Explore the relationship between predicted mean rattiness and explanatory variables using Generalized Additive Models (GAMs) to decide on their functional form. Note: all variables considered must also be measured at household locations</p></list-item><list-item><p>Conduct model selection using a linear model with mean predicted rattiness as the dependent variable.</p></list-item><list-item><p>Fit the non-spatial rattiness model with selected explanatory variables and compute the empirical variogram to check for evidence of residual spatial autocorrelation. If the variogram shows no signs of residual correlation, consider confirming this result by fitting the model in the following step - the estimated scale of spatial correlation <inline-formula><mml:math id="inf181"><mml:mi>ϕ</mml:mi></mml:math></inline-formula> should be close to zero (it may also not be able to estimate its value, with the value changing considerably between iterations).</p></list-item><list-item><p>Fit the spatial rattiness model with selected explanatory variables and predict mean rattiness at household locations to create an exploratory rattiness variable. To improve model convergence use parameter estimates from the non-spatial model as the first guess for the parameters and repeat model fitting by plugging in previous estimates.</p></list-item></list></list-item><list-item><p>Set up the human infection component of the model [script: 2-human-explore.R]:</p><list list-type="alpha-lower"><list-item><p>Explore the relationship between infection risk and explanatory variables using Generalized Additive Models (GAMs) to decide on their functional form.</p></list-item><list-item><p>Conduct model selection</p></list-item><list-item><p>Explore the relationship between infection risk and mean predicted rattiness using Generalized Additive Models (GAMs) and consider interactions where relevant.</p></list-item><list-item><p>Test for residual spatial correlation after controlling for selected variables and mean predicted rattiness (we recommend using the PrevMap package).</p></list-item></list></list-item><list-item><p>Using the joint rattiness-infection framework:</p><list list-type="alpha-lower"><list-item><p>Fit the joint model [script: 3-fit-joint-model.R]. In the ‘control’ file, the inclusion of a household-level random effect (or ‘nugget’) and an additional spatial Gaussian process (if there was evidence of residual spatial correlation after controlling for explanatory variables and rattiness in the previous step) in the human linear predictor can be controlled. We recommend monitoring parameter estimates from each iteration to assess how well the model is converging. If parameters for the spatial Gaussian processes are not converging then this may indicate that the data do not support the inclusion of an additional spatial Gaussian process in the human component and a simpler model should be considered. This model fitting process can be time consuming and ideally should be run on a high-end computing network.</p></list-item><list-item><p>Conduct a residual diagnostic analysis for the full rattiness-infection model [script: 5-revision subanalyses.R].</p></list-item><list-item><p>Bootstrap to estimate uncertainty in parameter estimates [script: 3-fit-joint-model.R]</p></list-item><list-item><p>Create prediction maps for rattiness, infection risk and spatial Gaussian processes (if required) [script: 4-spatial-prediction.R]. The prediction grid for your study area must include values for all variables included in the model.</p></list-item></list></list-item></list></sec></app></app-group></back><sub-article article-type="editor-report" id="sa0"><front-stub><article-id pub-id-type="doi">10.7554/eLife.73120.sa0</article-id><title-group><article-title>Editor's evaluation</article-title></title-group><contrib-group><contrib contrib-type="author"><name><surname>Hens</surname><given-names>Niel</given-names></name><role specific-use="editor">Reviewing Editor</role><aff><institution-wrap><institution-id institution-id-type="ror">https://ror.org/04nbhqj75</institution-id><institution>Hasselt University</institution></institution-wrap><country>Belgium</country></aff></contrib></contrib-group><related-object id="sa0ro1" object-id-type="id" object-id="10.1101/2021.09.21.21263884" link-type="continued-by" xlink:href="https://sciety.org/articles/activity/10.1101/2021.09.21.21263884"/></front-stub><body><p>In their work, the authors present a novel geostatistical framework allowing for modelling complex animal-environment-human interactions during zoonotic spillover. The presented case relates to zoonotic spillover of Leptospira infections in a marginalised urban setting in Salvador, Brazil. The outcomes of such applications could contribute to inform public health interventions. The methodological approach is to be applauded and can be of benefit beyond the study of zoonotic spillover.</p></body></sub-article><sub-article article-type="decision-letter" id="sa1"><front-stub><article-id pub-id-type="doi">10.7554/eLife.73120.sa1</article-id><title-group><article-title>Decision letter</article-title></title-group><contrib-group content-type="section"><contrib contrib-type="editor"><name><surname>Hens</surname><given-names>Niel</given-names></name><role>Reviewing Editor</role><aff><institution-wrap><institution-id institution-id-type="ror">https://ror.org/04nbhqj75</institution-id><institution>Hasselt University</institution></institution-wrap><country>Belgium</country></aff></contrib></contrib-group><contrib-group><contrib contrib-type="reviewer"><name><surname>Borremans</surname><given-names>Benny</given-names></name><role>Reviewer</role><aff><institution-wrap><institution-id institution-id-type="ror">https://ror.org/046rm7j60</institution-id><institution>University of California, Los Angeles</institution></institution-wrap><country>United States</country></aff></contrib></contrib-group></front-stub><body><boxed-text id="sa2-box1"><p>Our editorial process produces two outputs: (i) <ext-link ext-link-type="uri" xlink:href="https://sciety.org/articles/activity/10.1101/2021.09.21.21263884">public reviews</ext-link> designed to be posted alongside <ext-link ext-link-type="uri" xlink:href="https://www.medrxiv.org/content/10.1101/2021.09.21.21263884v1">the preprint</ext-link> for the benefit of readers; (ii) feedback on the manuscript for the authors, including requests for revisions, shown below. We also include an acceptance summary that explains what the editors found interesting or important about the work.</p></boxed-text><p><bold>Decision letter after peer review:</bold></p><p>Thank you for submitting your article &quot;Linking rattiness, geography and environmental degradation to spillover <italic>Leptospira</italic> infections in marginalised urban settings: an eco-epidemiological community-based cohort study in Brazil&quot; for consideration by <italic>eLife</italic>. Your article has been reviewed by 3 peer reviewers, one of whom is a member of our Board of Reviewing Editors, and the evaluation has been overseen by David Serwadda as the Senior Editor. The following individual involved in review of your submission has agreed to reveal their identity: Benny Borremans (Reviewer #3).</p><p>The reviewers have discussed their reviews with one another, and the Reviewing Editor has drafted this to help you prepare a revised submission.</p><p>Essential revisions:</p><p>The reviewers and I have several comments that should be carefully addressed. I tried to merge the essential ones here; though the public reviews and the recommendations for authors should be taken into account to (note that there is some overlap between the essential revisions and the public reviews).</p><p>1) On the statistical model and the choices made:</p><p>– On p7, section 2.2.2 the authors use mu_2 for defining the intensity of the inhomogeneous Poisson process. Shouldn't this be mu_1 rather mu_2? If not, what makes using the same function for Yi,1 and Yi,2 a reasonable choice? Note that the model used in both components is not the same.</p><p>– Did the authors perform a sensitivity analysis related to the assumption of t=0.5 for the disturbed traps (how often did this occur)?</p><p>– For the most part, the explanatory variables assessed in the different models were well described and justified, however there were some cases for which further explanation would have been helpful. For example, how did the authors determine which occupations to evaluate? Specifically, why traveling salesperson? What is the difference between open sewer within 10 m and unprotected from sewer?</p><p>– Sup file 2 and Figure S1 (and Table 1): This could be a function of me not understanding correctly, not necessarily the authors not conducting the study appropriately, but I couldn't understand why elevation was split into 3 when distance to large refuse piles was only split into 2 categories since the shape of the splines was similar. Based on Figure S1 (B) it seems that the effect decreases until ~ 60m then increases until ~ 145m and then decreases again? Also, it was unclear to me why in Table 1 an effect estimate for distance to large refuse piles of.02 is 'of little effect' when one of -.07 is considered noteworthy. They both seemed quite small.</p><p>– Table 2: It was unclear to me why both relative elevation and elevation level were included and how they differed. Further explanation would be helpful.</p><p>– Figure 4. It seems to me that the elevation levels were chosen simply by identifying the elevation cut-offs that divided the household sample sizes into three equal groups. It would be helpful if the authors included a viable biological justification for this division.</p><p>– The authors provide an extensive model building exercise and investigate, in different ways, whether the model captures the necessary complexity (GAM smoothers – testing linearity, spatial correlation, etc). I believe the work would benefit from (1) a formal diagnostic investigation, if feasible; (2) providing guidelines on how model building should be performed.</p><p>More specifically there are some additional concerns about this specific analysis:</p><p>(1) The infection risk data: while the actual infection risk data are not shown, the map shown in Figure 5B suggests that there is an infection hotspot that happens to be at high elevation. This raises the question of how strongly this single hotspot is driving the observed correlation between rat abundance and infection risk (which the authors find to be much stronger at high elevation than at lower elevations).</p><p>(2) The statistical models: if I understand correctly, all tested models of infection risk include the variable rat abundance, and while the individual effect estimates for rat abundance are statistically significant (Table 3), the more important question of how the fit of a model without the rat abundance variables compares with those of the other tested models (shown in Supplementary Table S2) has not been addressed.</p><p>I am wondering about this curious spatial pattern, where there seems to be one main predicted hotspot of infection risk (Figure 5B), which happens to be at a high elevation. There are a few other locations at a similar elevation, but these don't result in high infection risk predictions, which I assume is because of a difference in other important covariates? When comparing this result to the rattiness map (Figure 5A), one would never guess there is a meaningful (biologically significant) correlation between rattiness and infection risk. Model selection however did find a statistically significant effect of rattiness (Table 3), with the largest effect sizes for the high elevation. This makes me wonder whether the statistical pattern is mostly driven by this one hotspot that happens to be at high elevation, and how important rattiness really is overall.</p><p>It would be great to see a map based on the raw infection data, so it's possible to get a better sense of this possible biasing effect on the contribution of rattiness. Maybe add it to figure 5?</p><p>One way to test this would be to do the same analysis, but without the location(s) driving this high infection risk hotspot, and see if rattiness is still an important contributor to infection risk.</p><p>Perhaps more importantly, all human infection models (Supplementary table 2) include rattiness, so there is no way to assess how a model without rattiness compares with those that do. I strongly suggest adding at least one model without rattiness, for example model M1 but excluding rattiness. If the AIC values of all models in Table S2 are much lower than a model without rattiness, it would add a lot of confidence to the assumed significant effect of rattiness. This is related to the model framework relying on conditional independence within its built up (equation (1)). Whereas this is a reasonable assumption, it would be good to discuss situations in which this assumption is questionable and what the implications are for applying the modeling framework to other settings. In addition the authors indicate that the most complex model was chosen when modeling rattiness (p8, section 2.3.1). Doesn't this imply that the model selection reaches its limits given the candidate models at hand, ie is there a need to consider more complex models?</p><p>2) Presentation and interpretation of results</p><p>– In Tables 2 and 3, the authors present their results in a comprehensive way but it's not easy to connect those tables in terms of results. For example; are the occupational exposures binary variables? If not, what is the reference category and why is only one (work as traveling salesperson) retained in Table 3? Which of the variables reach overall significance?</p><p><italic>Reviewer #1 (Recommendations for the authors):</italic></p><p>I believe the manuscript is overall clearly written. I do have a few questions for clarification though.</p><p>On p2, section 2.1.2 serosurveys, eligibility criteria for inclusion in the cohort study are outlined. It would help explaining why these specific conditions were used for inclusion: ie 'who had slept more than 3 nights in the previous week in a study household'.</p><p>On p7, section 2.2.3 the authors define Zi,j using a Bernoulli variable with probability p_j(x_i). Wouldn't it make sense to consider a hazard-based framework or derive the corresponding hazard function in terms of it's interpretation?</p><p>Textual comments:</p><p>– Please use \mbox for the correlation in section 2.2.1.</p><p><italic>Reviewer #2 (Recommendations for the authors):</italic></p><p>Line 62 – typo? Analyze vs. analysing?</p><p>Figure 2 description – typo? … dh and dr are not mutually exclusive groups of explanatory [variables – missing?] and the same variables…</p><p>Line 277 – it would be nice to reference table 2 here so that the readers can see the full list of considered variables by group.</p><p>Regarding supplemental information, it would have been easier if the actual table or figure had been referenced vs. the file in which it could be found.</p><p><italic>Reviewer #3 (Recommendations for the authors):</italic></p><p>It was a pleasure to review your manuscript.</p><p>In my opinion the writing is excellent, the study design is clever and powerful (and must have been a lot of work!), and the spatial statistics are performed expertly.</p><p>I do have a few suggestions, that I hope can either be easily refuted or can help to improve the analyses.</p><p>Congratulations on this fantastic work.</p><p>L65: I suggest writing DALYs in full, as not all readers will know what this is.</p><p>L94: I don't agree that there is an absence of methods (multilevel Bayesian models for example have been around for a while), but rather that they are rarely applied in this context.</p><p>L99: I find this particular unspecific use of abundance quite confusing, as this is already a very specific and well-defined ecological term. For example, what exactly is then meant by reservoir host abundance on L104? Is this the number of reservoir hosts, or the number of infected hosts, or the number of leptospires in the environment?</p><p>If it is used as a measure of exposure to a disease of interest (L100), why not use a term like pathogen pressure, or just exposure? I strongly suggest using different words to describe actual abundance and pathogen-related abundance.</p><p>L115: The term rattiness is useful (and fun), but does it really represent leptospire pressure by rats if the model does not take into account leptospira prevalence/shedding in the rat populations? I agree that the presence/abundance of rats can be a decent proxy for the potential risk of leptospira spillover in locations with known presence of leptospira in the rat population, but I'm less inclined to accept that it is ok to define rattiness, which implies rat abundance, as a proxy for leptospiral contamination when the study did not measure the presence of leptospira in the rats.</p><p>I see that this is mentioned in the discussion (L493). I think it might be more useful to add this information earlier on, at the place where the term rattiness is introduced.</p><p>I agree that with such a high prevalence, it is reasonable to use rattiness as a proxy, but would still be wary: these 80% of rats are likely not distributed randomly across the area, as pathogen transmission is typically more spatially clustered. That means that 1 out of 5 local rat populations are not infected, which is definitely not negligible. That is an important caveat to highlight clearly, early on.</p><p>L208, 213: On L208, i is defined as a location, and on L213 as household location. I assume these represent the same location? If so, it might be best to be a bit more specific in the definition on L208, and add 'household', just so it's clear there is only one definition of a location.</p><p>L284: What is the rationale for choosing those specific knots?</p><p>L324: Kudos for citing the individual R packages (as one should, but often not done).</p></body></sub-article><sub-article article-type="reply" id="sa2"><front-stub><article-id pub-id-type="doi">10.7554/eLife.73120.sa2</article-id><title-group><article-title>Author response</article-title></title-group></front-stub><body><disp-quote content-type="editor-comment"><p>Essential revisions:</p><p>1) On the statistical model and the choices made:</p><p>– On p7, section 2.2.2 the authors use mu_2 for defining the intensity of the inhomogeneous Poisson process. Shouldn't this be mu_1 rather mu_2? If not, what makes using the same function for Yi,1 and Yi,2 a reasonable choice? Note that the model used in both components is not the same.</p></disp-quote><p>Thank you for pointing out this typographical error, it has been corrected to mu_1.</p><disp-quote content-type="editor-comment"><p>– Did the authors perform a sensitivity analysis related to the assumption of t=0.5 for the disturbed traps (how often did this occur)?</p></disp-quote><p>We have included the results of a sensitivity analysis to evaluate the impact of this assumption on our model parameter estimates in Appendix 6. In brief, for this analysis we drew independent samples for t from the uniform distribution for all 554 trap observations that closed early (36.6% of n=1,512 trap observations) and fitted a simplified rattiness model to the simulated data. This was repeated 1,000 times and between-imputation standard errors were computed. Estimated between-imputation standard errors were very small relative to parameter estimates (the maximum value of a SE divided by the point estimate was equal to 1.7%, with the rest below 1%), indicating that uncertainty due to the missing trap disturbance information is unlikely to have materially affected estimates of uncertainty in the full rattiness-infection model. This evidence supports the use of the t=0.5 assumption in our full analysis. We have added the following text to Section 2.2.2:</p><p>“We conducted a sensitivity analysis for this assumption (see Appendix 6) and found that it did not materially affect rattiness parameter estimates.”</p><disp-quote content-type="editor-comment"><p>– For the most part, the explanatory variables assessed in the different models were well described and justified, however there were some cases for which further explanation would have been helpful. For example, how did the authors determine which occupations to evaluate? Specifically, why traveling salesperson? What is the difference between open sewer within 10 m and unprotected from sewer?</p></disp-quote><p>We have added the following additional text to Section 2.3.2 on line 297 to clarify the definition and reason for inclusion for these variables:</p><p>“In the household environment domain, two variables were used to capture risk due to sewer flooding close to the household: (i) the presence of an open sewer within 10 metres of the household location and (ii) a binary `unprotected from open sewer' variable which identified those households within 10 metres of an open sewer that did not have any physical barriers erected to prevent water overflow. Three high-risk occupations were included in the occupational exposures domain as binary variables. Construction workers and refuse collectors have direct contact with potentially contaminated soil, building materials and refuse in areas that provide harbourage and food for rats. Travelling salespeople have regular and high levels of exposure to the environment (particularly during flooding events) as they move from house to house by foot. Two other binary occupational exposure variables were included that measured whether a participant worked in an occupation that involves contact with floodwater or sewer water.”</p><disp-quote content-type="editor-comment"><p>– Sup file 2 and Figure S1 (and Table 1): This could be a function of me not understanding correctly, not necessarily the authors not conducting the study appropriately, but I couldn't understand why elevation was split into 3 when distance to large refuse piles was only split into 2 categories since the shape of the splines was similar. Based on Figure S1 (B) it seems that the effect decreases until ~ 60m then increases until ~ 145m and then decreases again?</p></disp-quote><p>We have added the following text in Appendix 1 to explain the decision to model distance to refuse piles in this way and clarify the difference for elevation:</p><p>“A single knot point for the distance to refuse piles variable was chosen at 50m to account for the expected decay in the effect of food resources up to a rat home range distance, beyond which little effect would be expected. We did not include an additional knot point at 145m despite there being a visible change in gradient in Figure S1B for two reasons. Firstly, the home range of Norway rats is estimated to be less than 100m in these urban settings [1-3], meaning that rat abundance is very unlikely to be affected by the availability of anthropogenic food sources beyond this distance, particularly given the high availability of food across the study area. Secondly, we could offer no scientific rationale for why rattiness would start to increase again beyond 50m before peaking at a very large distance of 145m from a refuse pile and decreasing thereafter.</p><p>In contrast, the mechanisms by which rattiness varies with elevation are more complex, with significant changes in the environment occurring at different elevations. For example, the relationship identified in Figure S1A can be explained by the high risk of flooding at the bottom of the valley, which carries resources down to lower elevations (resulting in a peak of rattiness at about 7m) but makes the very lowest elevations unsuitable for rat burrows. The highest elevations in our study area are close to a main road with food markets where large quantities of food waste are left out in the street for collection. Although there is large uncertainty about this relationship, it is highly possible that this may be driving the positive relationship between 23m and 40m.”</p><disp-quote content-type="editor-comment"><p>Also, it was unclear to me why in Table 1 an effect estimate for distance to large refuse piles of.02 is 'of little effect' when one of -.07 is considered noteworthy. They both seemed quite small.</p></disp-quote><p>Thank you for pointing this out. We have added the following additional text to Section 3.2 to clarify this: “there was a smaller increase in rattiness of 0.02 (95\%CI -0.05, 0.09) per 10m.”</p><disp-quote content-type="editor-comment"><p>– Table 2: It was unclear to me why both relative elevation and elevation level were included and how they differed. Further explanation would be helpful.</p></disp-quote><p>We have changed ‘relative elevation level’ to ‘relative elevation category’ in the text to distinguish more clearly between these two parameterisations. These are two different parameterisations for household elevation above the valley floor: (i) relative elevation – a continuous variable modelled as a linear spline with a knot at 20 metres; (ii) relative elevation category – a categorical variable modelled as a piecewise constant function with breaks at 6.7 and 15.6 metres resulting in three categories: low, medium and high elevation levels. We have added the following additional text in Section 2.2.4 to clarify this:</p><p>“a categorical parameterisation of household elevation relative to the bottom of the valley (modelled as a piecewise constant function with breaks at 6.7 and 15.6 metres, resulting in three categories: low, medium and high elevation levels.)”. We have also added the following footnote to Table 2: “Relative elevation category consists of three discrete groups representing three regions with different flooding risk profiles.”.</p><p>Both of these variables were included in the model selection because relative elevation has conventionally been modelled as a continuous variable in earlier studies and we wished to maintain consistency. Relative elevation category was included because our primary aim was to test the hypothesis of whether the role of rats in driving transmission varied across the chosen three elevation categories (low, medium and high) due to their different flood risk profiles. We have added additional text to clarify the reason for the inclusion of the relative elevation category variable.</p><disp-quote content-type="editor-comment"><p>– Figure 4. It seems to me that the elevation levels were chosen simply by identifying the elevation cut-offs that divided the household sample sizes into three equal groups. It would be helpful if the authors included a viable biological justification for this division.</p></disp-quote><p>The choice of these groupings was based on our observations on the spatial variation in flooding risk and leptospirosis risk at low, medium and high elevations in the community as defined in earlier studies conducted at this site. Consequently, our study area was defined to have a roughly even number of households across this elevation gradient. We have added the following additional text to Section 2.2.4 to clarify this:</p><p>“This was implemented by first dividing the study area into three elevation categories with different flooding risk profiles (as observed during our work in the study area over the last 15 years): low (0-6.7m from bottom of valley; high flooding risk with maintenance of floodwater for long periods), medium (6.7-15.6m; moderate flooding with high water runoff) and high (&gt;15.6m; limited flooding and water runoff). Our study was then designed to evenly sample across this elevation gradient and minimum and maximum values for each elevation category were chosen to include an equal number of households in each level.”</p><disp-quote content-type="editor-comment"><p>– The authors provide an extensive model building exercise and investigate, in different ways, whether the model captures the necessary complexity (GAM smoothers – testing linearity, spatial correlation, etc). I believe the work would benefit from (1) a formal diagnostic investigation, if feasible;</p></disp-quote><p>We have added a new Appendix 7 with diagnostic plots of randomized quantile residuals to check the rattiness-infection model fit with the human infection data and included the following text in Section 2.4 of the main text:</p><p>“A formal diagnostic investigation of randomized quantile residuals is included in Appendix 7. We found no evidence in the diagnostic plots to suggest that there were issues with our modelling approach.”</p><disp-quote content-type="editor-comment"><p>(2) providing guidelines on how model building should be performed.</p></disp-quote><p>To supplement the R code that is publicly available for repeating all of the steps in this analysis, we have now also included a detailed step-by-step explanation of the model building process in Appendix 8 that outlines the key steps for building the rat and infection components of the model (variable selection and evaluation of residual spatial autocorrelation) and fitting and examining the joint rattiness-infection model. We have added the following text in Section 2.6 of the main text:</p><p>“We also include a step-by-step explanation of the model building process to guide future users of the rattiness-infection framework in Appendix 8.”</p><disp-quote content-type="editor-comment"><p>More specifically there are some additional concerns about this specific analysis:</p><p>(1) The infection risk data: while the actual infection risk data are not shown, the map shown in Figure 5B suggests that there is an infection hotspot that happens to be at high elevation. This raises the question of how strongly this single hotspot is driving the observed correlation between rat abundance and infection risk (which the authors find to be much stronger at high elevation than at lower elevations).</p></disp-quote><p>Please see below.</p><disp-quote content-type="editor-comment"><p>(2) The statistical models: if I understand correctly, all tested models of infection risk include the variable rat abundance, and while the individual effect estimates for rat abundance are statistically significant (Table 3), the more important question of how the fit of a model without the rat abundance variables compares with those of the other tested models (shown in Supplementary Table S2) has not been addressed.</p><p>I am wondering about this curious spatial pattern, where there seems to be one main predicted hotspot of infection risk (Figure 5B), which happens to be at a high elevation. There are a few other locations at a similar elevation, but these don't result in high infection risk predictions, which I assume is because of a difference in other important covariates? When comparing this result to the rattiness map (Figure 5A), one would never guess there is a meaningful (biologically significant) correlation between rattiness and infection risk. Model selection however did find a statistically significant effect of rattiness (Table 3), with the largest effect sizes for the high elevation.</p><p>This makes me wonder whether the statistical pattern is mostly driven by this one hotspot that happens to be at high elevation, and how important rattiness really is overall.</p><p>It would be great to see a map based on the raw infection data, so it's possible to get a better sense of this possible biasing effect on the contribution of rattiness. Maybe add it to figure 5?</p><p>One way to test this would be to do the same analysis, but without the location(s) driving this high infection risk hotspot, and see if rattiness is still an important contributor to infection risk.</p></disp-quote><p>Thank you for this comment. We have added a new figure (Figure 4) earlier on in the article (we decided to add this here rather than to Figure 6 – formerly Figure 5 – to ensure that the map is large enough that points in Figure 4A are easily visible – please note that it is included as a larger and easier to view image in the main <italic>eLife</italic> template version) with the raw infection data overlaid on contour lines for the three elevation levels to provide the reader with a better overview of the raw data. This new Figure 4 shows that out of a total of 403 participants in the high elevation region there were 16 infections, of which only 5 (31%) were located in the large hotspot in Valley 3 (valleys are numbered 1 to 3 from west to east, see Figure 1A). In addition to the largest hotspot in the north of Valley 3, there are several other areas in the high elevation region with raised predicted infection risk values relative to their surroundings where there were also rattiness hotspots and infected participants in the raw data: fives cases (red and yellow infection risk areas in Figure 5B) on the western side of Valley 2; the two cases on the eastern edge of Valley 2; the two cases on the western edge of Valley 3; and the single case in the southwest of Valley 3. Other variables are also important drivers of infection risk and at several of these locations the contribution of rattiness increases infection risk significantly relative to the low-risk surrounding area (e.g. to 10% in areas where risk is closer to 1% or 2%) without reaching the more obviously visible high infection risk values closer to 20%. We believe that our statistical model provides a better test of whether there is a statistical association between rattiness and infection at high elevations than a visual examination, but that this is supported by the large number of observations in the high elevation area (403) and the distribution of infected and uninfected households, which demonstrates that the observed association is not only driven by the hotspot in Valley 2.</p><disp-quote content-type="editor-comment"><p>Perhaps more importantly, all human infection models (Supplementary table 2) include rattiness, so there is no way to assess how a model without rattiness compares with those that do. I strongly suggest adding at least one model without rattiness, for example model M1 but excluding rattiness. If the AIC values of all models in Table S2 are much lower than a model without rattiness, it would add a lot of confidence to the assumed significant effect of rattiness.</p></disp-quote><p>Thank you for pointing this out. These models were considered but were ranked outside of the top five models and for this reason were not reported in Table S2. We agree that showing the AIC of a model without rattiness in this table can more clearly demonstrate the improved fit of the model with rattiness. To do this we have added the highest ranked model without rattiness (M*) to Table S2 and added a note to the table explaining the reason for its inclusion (“Model M* was ranked outside of the top 5 models but is included here for reference to demonstrate the improvement in model fit when rattiness is included”). The AIC of M* was 532.13. This is substantially higher than the top five models (M1 = 523.14 and M5 = 525.04), justifying its inclusion in this model and in the joint rattiness-infection framework.</p><disp-quote content-type="editor-comment"><p>This is related to the model framework relying on conditional independence within its built up (equation (1)). Whereas this is a reasonable assumption, it would be good to discuss situations in which this assumption is questionable and what the implications are for applying the modeling framework to other settings.</p></disp-quote><p>We have added the following text immediately after “is shown schematically in Figure 2” following equation (1) on line 225:</p><p>“The conditional independence assumption in (1) is reasonable for a vector-borne disease or one that is transmitted indirectly, in which context the observed rat indices are to be considered as noisy indicators of the unobservable spatial variation in the extent to which the environment is contaminated with rat-derived pathogen. It would be more questionable for applications in which the disease of interest is spread by direct transmission from rat to human.”</p><disp-quote content-type="editor-comment"><p>In addition the authors indicate that the most complex model was chosen when modeling rattiness (p8, section 2.3.1). Doesn't this imply that the model selection reaches its limits given the candidate models at hand, ie is there a need to consider more complex models?</p></disp-quote><p>The number of variables available for consideration in this rattiness model was limited to the three variables included in the model because of the requirement that they were also measured at all household locations. For this reason, we were unable to consider any other environmental variables. In terms of the functional forms of the included variables, we wished to maintain interpretability in the modelled relationships and decided to model them with linear splines rather than considering more complex and less interpretable smoothing functions.</p><disp-quote content-type="editor-comment"><p>2) Presentation and interpretation of results</p><p>– In Tables 2 and 3, the authors present their results in a comprehensive way but it's not easy to connect those tables in terms of results. For example; are the occupational exposures binary variables? If not, what is the reference category and why is only one (work as traveling salesperson) retained in Table 3? Which of the variables reach overall significance?</p></disp-quote><p>These occupational exposure variables are binary. We have now added additional text in Section 2.3.2 on lines 294 and 297 to clarify this and have added a footnote explaining that the reference category was participants who do not have this exposure in Tables 2 and 3: “Binary variable with reference category of `no occupational exposure'.”. A reference category was not included for each variable because Tables 2 and 3 are already large and we wished to keep it on a single page.</p><p>In terms of the overall significance, we prefer to show on confidence intervals to focus on range of possible effect sizes compatible with the data rather than p-values. However, all OR confidence intervals that did not include the value one are significant at the conventional 5% level. To make this more consistent in the text we have edited the text as follows:</p><p>Line 394 – “Variables in two of the four domains (demographic and social status and behavioural exposures) had estimated effect sizes with 95\% confidence intervals that did not include an odds ratio of one (statistically significant at the conventional 5\% level).”</p><p>Line 422 – “Individuals living in the medium (OR 0.77 95\%CI 0.31, 1.66) and high (OR 0.67 95\%CI 0.11, 1.64) elevation areas had a lower estimated odds of infection relative to those living in the low relative elevation category area where there are open sewers and flooding risk is higher, however these confidence intervals included an odds ratio of one (not statistically significant at the conventional 5% level).”</p><disp-quote content-type="editor-comment"><p>Reviewer #1 (Recommendations for the authors):</p><p>I believe the manuscript is overall clearly written. I do have a few questions for clarification though.</p><p>On p2, section 2.1.2 serosurveys, eligibility criteria for inclusion in the cohort study are outlined. It would help explaining why these specific conditions were used for inclusion: ie 'who had slept more than 3 nights in the previous week in a study household'.</p></disp-quote><p>We have added the following additional text to clarify this “This study focussed on ground floor households because they are vulnerable to flooding and consequently at high risk for leptospiral transmission. The criterion for determining whether a resident is currently living at a household location is commonly applied in this context to account for resident mobility.”.</p><disp-quote content-type="editor-comment"><p>On p7, section 2.2.3 the authors define Zi,j using a Bernoulli variable with probability p_j(x_i). Wouldn't it make sense to consider a hazard-based framework or derive the corresponding hazard function in terms of it's interpretation?</p></disp-quote><p>Thank you for your comment. Our study design consisted of two cross-sectional serological surveys conducted six months apart. We defined infections during this six-month period based on a comparison of antibody titres in paired serological samples from the two surveys. As we had no ongoing surveillance during this period (and because a significant proportion of infections are asymptomatic) we were only able to consider the outcome of whether there had been (at least one) infection event during the six-month period. Consequently, we did not have a time-to-event outcome and were therefore unable to consider a hazard-based framework.</p><disp-quote content-type="editor-comment"><p>Textual comments:</p><p>– Please use \mbox for the correlation in section 2.2.1.</p></disp-quote><p>This has been corrected, thank you for pointing this out.</p><disp-quote content-type="editor-comment"><p>Reviewer #2 (Recommendations for the authors):</p><p>Line 62 – typo? Analyze vs. analysing?</p></disp-quote><p>This has been corrected, thank you for pointing this typo out.</p><disp-quote content-type="editor-comment"><p>Figure 2 description – typo? … dh and dr are not mutually exclusive groups of explanatory [variables – missing?] and the same variables…</p></disp-quote><p>This has been corrected by adding in ‘variables’, thank you for pointing this typo out.</p><disp-quote content-type="editor-comment"><p>Line 277 – it would be nice to reference table 2 here so that the readers can see the full list of considered variables by group.</p></disp-quote><p>We have added the following text in the suggested sentence (Section 2.3.2): “(see Table 2 for the full list of considered variables by group)”</p><disp-quote content-type="editor-comment"><p>Regarding supplemental information, it would have been easier if the actual table or figure had been referenced vs. the file in which it could be found.</p></disp-quote><p>We have now added the Figure/Table reference for all references to supplemental information throughout the main text.</p><disp-quote content-type="editor-comment"><p>Reviewer #3 (Recommendations for the authors):</p><p>It was a pleasure to review your manuscript.</p><p>In my opinion the writing is excellent, the study design is clever and powerful (and must have been a lot of work!), and the spatial statistics are performed expertly.</p><p>I do have a few suggestions, that I hope can either be easily refuted or can help to improve the analyses.</p><p>Congratulations on this fantastic work.</p><p>L65: I suggest writing DALYs in full, as not all readers will know what this is.</p></disp-quote><p>We have added the following text: “disability-adjusted life years (DALYs)”.</p><disp-quote content-type="editor-comment"><p>L94: I don't agree that there is an absence of methods (multilevel Bayesian models for example have been around for a while), but rather that they are rarely applied in this context.</p></disp-quote><p>We have changed ‘The absence of methods to formally integrate abundance into analyses of spillover mechanisms is an issue for rodent-borne zoonoses more widely’ to ‘the absence of methods applied to formally integrate to formally integrate abundance and spillover infection data is an issue for rodent-borne zoonoses more widely’.</p><disp-quote content-type="editor-comment"><p>L99: I find this particular unspecific use of abundance quite confusing, as this is already a very specific and well-defined ecological term. For example, what exactly is then meant by reservoir host abundance on L104? Is this the number of reservoir hosts, or the number of infected hosts, or the number of leptospires in the environment?</p><p>If it is used as a measure of exposure to a disease of interest (L100), why not use a term like pathogen pressure, or just exposure? I strongly suggest using different words to describe actual abundance and pathogen-related abundance.</p></disp-quote><p>We agree that abundance in this context is well-defined as the density of reservoir hosts, however it is very commonly used to describe measures or estimates that are all proxies for ‘true abundance’. In our paper we wished to explicitly acknowledge the implications of using several imperfect abundance indices on our latent process. To make this clearer and more consistent we have changed the text to “We use the term ‘abundance’ here to denote all ecological processes that are associated with animal abundance and measured by abundance indices, for example animal presence, density and activity, and that may be useful to quantify exposure to a zoonotic disease of interest.”. We have also added “(as defined previously)” on line 106 to make it clear that we are consistently using this definition throughout the paper.</p><disp-quote content-type="editor-comment"><p>L115: The term rattiness is useful (and fun), but does it really represent leptospire pressure by rats if the model does not take into account leptospira prevalence/shedding in the rat populations? I agree that the presence/abundance of rats can be a decent proxy for the potential risk of leptospira spillover in locations with known presence of leptospira in the rat population, but I'm less inclined to accept that it is ok to define rattiness, which implies rat abundance, as a proxy for leptospiral contamination when the study did not measure the presence of leptospira in the rats.</p><p>I see that this is mentioned in the discussion (L493). I think it might be more useful to add this information earlier on, at the place where the term rattiness is introduced.</p><p>I agree that with such a high prevalence, it is reasonable to use rattiness as a proxy, but would still be wary: these 80% of rats are likely not distributed randomly across the area, as pathogen transmission is typically more spatially clustered. That means that 1 out of 5 local rat populations are not infected, which is definitely not negligible. That is an important caveat to highlight clearly, early on.</p></disp-quote><p>Thank you for this comment. We have added the following text on line 530 in the discussion to emphasise the possibility of spatial clustering of non-shedding rats:</p><p>“Despite this, non-shedding rats may be spatially clustered and future work would benefit from the collection of georeferenced rat infection data”. We have also edited the first sentence in on line 116 in the Introduction to the following: “The aim of this study was to develop a flexible modelling framework for zoonotic spillover to explore whether rattiness, acting as a proxy for local leptospiral contamination by Norway rats, can explain spatial heterogeneity in leptospiral transmission in a high-risk urban community in Brazil where 80% of rats are estimated to be actively shedding the bacteria.”</p><disp-quote content-type="editor-comment"><p>L208, 213: On L208, i is defined as a location, and on L213 as household location. I assume these represent the same location? If so, it might be best to be a bit more specific in the definition on L208, and add 'household', just so it's clear there is only one definition of a location.</p></disp-quote><p>We denote the full set of locations for which we have collected data (rat abundance sampling locations and participant household locations) with ‘i’, but index them as i = 1,…,N<sub>r</sub> for rat index locations and i = N<sub>r</sub>+1,….,N<sub>r</sub>+N<sub>h</sub> for household locations. This is important for our definition of R(x<sub>i</sub>) at all rat and human locations. We have tried to be consistent with this definition for the rat and human data – on line 219 we defined the human data to be at ‘a discrete set of locations X=…’. The reason for including the text ‘for individual j at household location i’ was to make it explicit that it was the household location which we were using for the human data.</p><disp-quote content-type="editor-comment"><p>L284: What is the rationale for choosing those specific knots?</p></disp-quote><p>We have added the following additional text in Appendix 2 to explain the use of the generalized additive model (GAM) plots to explore non-linear relationships between explanatory variables and human infection risk more explicitly:</p><p>“Single knot points were considered for age at 30 years (Figure S2A), education at 5 years (Figure S2C) and relative elevation at 20 metres (Figure S2D) based on the value of the explanatory variable at which the gradient of the relationship changed in these plots.”. This is already referenced in the main text “As before, non-linear relationships were modelled using linear splines based on the identified functional form. Age was modelled with a knot at 30 years old, education at 5 years and relative elevation at 20m (Figure S2 in Appendix 1)”.</p><p>Please see above for similar added text to clarify the same process for the rattiness explanatory variables.</p><disp-quote content-type="editor-comment"><p>L324: Kudos for citing the individual R packages (as one should, but often not done).</p></disp-quote><p>Thank you.</p></body></sub-article></article>