There is a newer version of this record available.

Software Open Access

reconhub/incidence: Incidence version 1.6.0

Thibaut Jombart; Zhian N. Kamvar; Jun Cai; Juliet Pulliam; Sarah Chisholm; Rich FitzJohn; Jakob Schumacher; Sangeeta Bhatia


DCAT Export

<?xml version='1.0' encoding='utf-8'?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:adms="http://www.w3.org/ns/adms#" xmlns:cnt="http://www.w3.org/2011/content#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dct="http://purl.org/dc/terms/" xmlns:dctype="http://purl.org/dc/dcmitype/" xmlns:dcat="http://www.w3.org/ns/dcat#" xmlns:duv="http://www.w3.org/ns/duv#" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:frapo="http://purl.org/cerif/frapo/" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:gsp="http://www.opengis.net/ont/geosparql#" xmlns:locn="http://www.w3.org/ns/locn#" xmlns:org="http://www.w3.org/ns/org#" xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns:prov="http://www.w3.org/ns/prov#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:schema="http://schema.org/" xmlns:skos="http://www.w3.org/2004/02/skos/core#" xmlns:vcard="http://www.w3.org/2006/vcard/ns#" xmlns:wdrs="http://www.w3.org/2007/05/powder-s#">
  <rdf:Description rdf:about="https://doi.org/10.5281/zenodo.2584018">
    <rdf:type rdf:resource="http://www.w3.org/ns/dcat#Dataset"/>
    <dct:type rdf:resource="http://purl.org/dc/dcmitype/Software"/>
    <dct:identifier rdf:datatype="http://www.w3.org/2001/XMLSchema#anyURI">https://doi.org/10.5281/zenodo.2584018</dct:identifier>
    <foaf:page rdf:resource="https://doi.org/10.5281/zenodo.2584018"/>
    <dct:creator>
      <rdf:Description>
        <rdf:type rdf:resource="http://xmlns.com/foaf/0.1/Agent"/>
        <foaf:name>Thibaut Jombart</foaf:name>
        <org:memberOf>
          <foaf:Organization>
            <foaf:name>Imperial College London</foaf:name>
          </foaf:Organization>
        </org:memberOf>
      </rdf:Description>
    </dct:creator>
    <dct:creator>
      <rdf:Description>
        <rdf:type rdf:resource="http://xmlns.com/foaf/0.1/Agent"/>
        <foaf:name>Zhian N. Kamvar</foaf:name>
        <org:memberOf>
          <foaf:Organization>
            <foaf:name>Imperial College London</foaf:name>
          </foaf:Organization>
        </org:memberOf>
      </rdf:Description>
    </dct:creator>
    <dct:creator>
      <rdf:Description>
        <rdf:type rdf:resource="http://xmlns.com/foaf/0.1/Agent"/>
        <foaf:name>Jun Cai</foaf:name>
        <org:memberOf>
          <foaf:Organization>
            <foaf:name>Tsinghua University</foaf:name>
          </foaf:Organization>
        </org:memberOf>
      </rdf:Description>
    </dct:creator>
    <dct:creator>
      <rdf:Description>
        <rdf:type rdf:resource="http://xmlns.com/foaf/0.1/Agent"/>
        <foaf:name>Juliet Pulliam</foaf:name>
        <org:memberOf>
          <foaf:Organization>
            <foaf:name>Stellenbosch University</foaf:name>
          </foaf:Organization>
        </org:memberOf>
      </rdf:Description>
    </dct:creator>
    <dct:creator>
      <rdf:Description>
        <rdf:type rdf:resource="http://xmlns.com/foaf/0.1/Agent"/>
        <foaf:name>Sarah Chisholm</foaf:name>
        <org:memberOf>
          <foaf:Organization>
            <foaf:name>Public Health England</foaf:name>
          </foaf:Organization>
        </org:memberOf>
      </rdf:Description>
    </dct:creator>
    <dct:creator>
      <rdf:Description>
        <rdf:type rdf:resource="http://xmlns.com/foaf/0.1/Agent"/>
        <foaf:name>Rich FitzJohn</foaf:name>
      </rdf:Description>
    </dct:creator>
    <dct:creator>
      <rdf:Description>
        <rdf:type rdf:resource="http://xmlns.com/foaf/0.1/Agent"/>
        <foaf:name>Jakob Schumacher</foaf:name>
      </rdf:Description>
    </dct:creator>
    <dct:creator>
      <rdf:Description>
        <rdf:type rdf:resource="http://xmlns.com/foaf/0.1/Agent"/>
        <foaf:name>Sangeeta Bhatia</foaf:name>
        <org:memberOf>
          <foaf:Organization>
            <foaf:name>Imperial College London</foaf:name>
          </foaf:Organization>
        </org:memberOf>
      </rdf:Description>
    </dct:creator>
    <dct:title>reconhub/incidence: Incidence version 1.6.0</dct:title>
    <dct:publisher>
      <foaf:Agent>
        <foaf:name>Zenodo</foaf:name>
      </foaf:Agent>
    </dct:publisher>
    <dct:issued rdf:datatype="http://www.w3.org/2001/XMLSchema#gYear">2019</dct:issued>
    <dct:issued rdf:datatype="http://www.w3.org/2001/XMLSchema#date">2019-03-05</dct:issued>
    <owl:sameAs rdf:resource="https://zenodo.org/record/2584018"/>
    <adms:identifier>
      <adms:Identifier>
        <skos:notation rdf:datatype="http://www.w3.org/2001/XMLSchema#anyURI">https://zenodo.org/record/2584018</skos:notation>
      </adms:Identifier>
    </adms:identifier>
    <dct:relation rdf:resource="https://github.com/reconhub/incidence/tree/1.6.0"/>
    <dct:isVersionOf rdf:resource="https://doi.org/10.5281/zenodo.1404718"/>
    <owl:versionInfo>1.6.0</owl:versionInfo>
    <dct:description>&lt;p&gt;The changes in this version are small, but the impact changes the behavior, so the minor version number is bumped. This updates &lt;code&gt;first_date&lt;/code&gt; to NOT override &lt;code&gt;standard = TRUE&lt;/code&gt;. This changes behavior because &lt;code&gt;first_date&lt;/code&gt; used to automatically set &lt;code&gt;standard = FALSE&lt;/code&gt;.&lt;/p&gt; &lt;p&gt;The change to having &lt;code&gt;standard&lt;/code&gt; supersede &lt;code&gt;first_date&lt;/code&gt; is more consistent with normal behavior and gives users more freedom in the end. Much thanks goes to @caijun for pointing this out and elaborating patiently.&lt;/p&gt; &lt;p&gt;To alert users to the change while minimizing annoyance, a one-time warning is now issued if &lt;code&gt;standard&lt;/code&gt; is not specified with &lt;code&gt;first_date&lt;/code&gt;. This can be explicitly turned off by setting an the &lt;code&gt;incidence.warn.first_date&lt;/code&gt; option to &lt;code&gt;FALSE&lt;/code&gt; (as described in the warning):&lt;/p&gt; &lt;pre&gt;&lt;code class="lang-r"&gt;library(&amp;quot;incidence&amp;quot;) d &amp;lt;- Sys.Date() + sample(-3:10, 10, replace = TRUE) Sys.Date() - 10 #&amp;gt; [1] &amp;quot;2019-02-23&amp;quot; &lt;/code&gt;&lt;/pre&gt; &lt;p&gt;If both &lt;code&gt;standard&lt;/code&gt; and &lt;code&gt;first_date&lt;/code&gt;specified, no warning&lt;/p&gt; &lt;pre&gt;&lt;code class="lang-r"&gt;incidence(d, interval = &amp;quot;week&amp;quot;, first_date = Sys.Date() - 10, standard = TRUE) #&amp;gt; &amp;lt;incidence object&amp;gt; #&amp;gt; [10 cases from days 2019-02-18 to 2019-03-11] #&amp;gt; [10 cases from ISO weeks 2019-W08 to 2019-W11] #&amp;gt; #&amp;gt; $counts: matrix with 4 rows and 1 columns #&amp;gt; $n: 10 cases in total #&amp;gt; $dates: 4 dates marking the left-side of bins #&amp;gt; $interval: 1 week #&amp;gt; $timespan: 22 days #&amp;gt; $cumulative: FALSE &lt;/code&gt;&lt;/pre&gt; &lt;p&gt;warning issued if &lt;code&gt;standard&lt;/code&gt; not specified&lt;/p&gt; &lt;pre&gt;&lt;code class="lang-r"&gt;incidence(d, interval = &amp;quot;week&amp;quot;, first_date = Sys.Date() - 10) #&amp;gt; Warning in incidence.Date(d, interval = &amp;quot;week&amp;quot;, first_date = Sys.Date() - : #&amp;gt; #&amp;gt; As of incidence version 1.6.0, the default behavior has been modified so that `first_date` no longer overrides `standard`. If you want to use Sys.Date() - 10 as the precise `first_date`, set `standard = FALSE`. #&amp;gt; #&amp;gt; To remove this warning in the future, explicitly set the `standard` argument OR use `options(incidence.warn.first_date = FALSE)` #&amp;gt; &amp;lt;incidence object&amp;gt; #&amp;gt; [10 cases from days 2019-02-18 to 2019-03-11] #&amp;gt; [10 cases from ISO weeks 2019-W08 to 2019-W11] #&amp;gt; #&amp;gt; $counts: matrix with 4 rows and 1 columns #&amp;gt; $n: 10 cases in total #&amp;gt; $dates: 4 dates marking the left-side of bins #&amp;gt; $interval: 1 week #&amp;gt; $timespan: 22 days #&amp;gt; $cumulative: FALSE &lt;/code&gt;&lt;/pre&gt; &lt;p&gt;no warning issued the second time around.&lt;/p&gt; &lt;pre&gt;&lt;code class="lang-r"&gt;incidence(d, interval = &amp;quot;week&amp;quot;, first_date = Sys.Date() - 10) #&amp;gt; &amp;lt;incidence object&amp;gt; #&amp;gt; [10 cases from days 2019-02-18 to 2019-03-11] #&amp;gt; [10 cases from ISO weeks 2019-W08 to 2019-W11] #&amp;gt; #&amp;gt; $counts: matrix with 4 rows and 1 columns #&amp;gt; $n: 10 cases in total #&amp;gt; $dates: 4 dates marking the left-side of bins #&amp;gt; $interval: 1 week #&amp;gt; $timespan: 22 days #&amp;gt; $cumulative: FALSE &lt;/code&gt;&lt;/pre&gt; &lt;p&gt;&amp;lt;sup&amp;gt;Created on 2019-03-05 by the [reprex package](https://reprex.tidyverse.org) (v0.2.1)&amp;lt;/sup&amp;gt;&lt;/p&gt; &lt;p&gt;Full changes detailed below:&lt;/p&gt; BEHAVIORAL CHANGE &lt;ul&gt; &lt;li&gt;&lt;code&gt;incidence()&lt;/code&gt; will no longer allow a non-standard &lt;code&gt;first_date&lt;/code&gt; to override &lt;code&gt;standard = TRUE&lt;/code&gt;. The first call to &lt;code&gt;incidence()&lt;/code&gt; specifying &lt;code&gt;first_date&lt;/code&gt; without &lt;code&gt;standard&lt;/code&gt; will issue a warning. To use non-standard first dates, specify &lt;code&gt;standard = FALSE&lt;/code&gt;. To remove the warning, use &lt;code&gt;options(incidence.warn.first_date = FALSE)&lt;/code&gt;. See &lt;a href="https://github.com/reconhub/incidence/issues/87"&gt;https://github.com/reconhub/incidence/issues/87&lt;/a&gt; for details. &lt;/li&gt; &lt;/ul&gt; MISC &lt;ul&gt; &lt;li&gt;&lt;code&gt;citation("incidence")&lt;/code&gt; will now give the proper citation for our article in F1000 research and the global DOI for archived code. See &lt;a href="https://github.com/reconhub/incidence/pulls/106"&gt;https://github.com/reconhub/incidence/pulls/106&lt;/a&gt;&lt;/li&gt; &lt;li&gt;Tests have been updated to avoid randomisation errors on R 3.6.0 See &lt;a href="https://github.com/reconhub/incidence/issues/107"&gt;https://github.com/reconhub/incidence/issues/107&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt;</dct:description>
    <dct:accessRights rdf:resource="http://publications.europa.eu/resource/authority/access-right/PUBLIC"/>
    <dct:accessRights>
      <dct:RightsStatement rdf:about="info:eu-repo/semantics/openAccess">
        <rdfs:label>Open Access</rdfs:label>
      </dct:RightsStatement>
    </dct:accessRights>
    <dcat:distribution>
      <dcat:Distribution>
        <dcat:accessURL rdf:resource="https://doi.org/10.5281/zenodo.2584018"/>
      </dcat:Distribution>
    </dcat:distribution>
  </rdf:Description>
</rdf:RDF>
3,450
232
views
downloads
All versions This version
Views 3,4503,137
Downloads 232163
Data volume 1.2 GB822.8 MB
Unique views 3,2353,003
Unique downloads 180140

Share

Cite as