{
  "_id": "6a0f6d78acfb0bcc41c5ebf6",
  "Package": "anovir",
  "Type": "Package",
  "Title": "Analysis of Virulence",
  "Version": "0.1.0",
  "Authors@R": "c(person(\"Philip\", \"Agnew\", email = \"philip.agnew@ird.fr\", role = c(\"aut\", \"cre\")),\nperson(\"Jimmy\",\"Lopez\", email = \"jimmy.lopez@ird.fr\", role = c(\"aut\")))",
  "Maintainer": "Philip Agnew <philip.agnew@ird.fr>",
  "Description": "Epidemiological population dynamics models traditionally\ndefine a pathogen's virulence as the increase in the per capita\nrate of mortality of infected hosts due to infection. This\npackage provides functions allowing virulence to be estimated\nby maximum likelihood techniques. The approach is based on the\nanalysis of relative survival comparing survival in matching\ncohorts of infected vs. uninfected hosts (Agnew 2019)\n<doi:10.1101/530709>.",
  "License": "GPL-3",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "RoxygenNote": "7.1.1",
  "Collate": "'anovir-package.R' 'private_functions.R' 'nll_recovery.R'\n'nll_recovery_II.R' 'data_descriptions.R' 'main.R'\n'play_file.R' 'nll_functions.R' 'nll_frailty_correlated.R'",
  "VignetteBuilder": "knitr",
  "URL": "https://www.biorxiv.org/content/10.1101/530709v1",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-21 08:04:28 UTC",
    "User": "root"
  },
  "Author": "Philip Agnew [aut, cre], Jimmy Lopez [aut]",
  "Repository": "https://philipagnew.r-universe.dev",
  "Date/Publication": "2020-10-24 07:50:05 UTC",
  "RemoteUrl": "https://github.com/cran/anovir",
  "RemoteRef": "HEAD",
  "RemoteSha": "80ffca0c6bebcc536d21d0982cd49c83f2226486",
  "MD5sum": "bef34828c05d2fec118ee0558b6b7dd0",
  "_user": "philipagnew",
  "_type": "src",
  "_file": "anovir_0.1.0.tar.gz",
  "_fileid": "4ff9eb7bc905a849079b85e0f2aca1acf06c23d1174f750f169234cd3de63e95",
  "_filesize": 747421,
  "_sha256": "4ff9eb7bc905a849079b85e0f2aca1acf06c23d1174f750f169234cd3de63e95",
  "_created": "2026-05-21T08:04:28.000Z",
  "_published": "2026-05-21T20:39:20.203Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77264162050,
      "time": 143,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7130450786"
    },
    {
      "job": 77264162636,
      "time": 134,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7130448195"
    },
    {
      "job": 77264162104,
      "time": 172,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7130451358"
    },
    {
      "job": 77264162075,
      "time": 264,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7130448309"
    },
    {
      "job": 77264161736,
      "time": 172,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7130405515"
    },
    {
      "job": 77264161615,
      "time": 98,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7146656760"
    },
    {
      "job": 77264162348,
      "time": 101,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7130438076"
    },
    {
      "job": 77264162664,
      "time": 98,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7130437275"
    },
    {
      "job": 77264162552,
      "time": 115,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7130441947"
    }
  ],
  "_buildurl": "https://github.com/r-universe/philipagnew/actions/runs/26213450530",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/cran/anovir",
  "_commit": {
    "id": "80ffca0c6bebcc536d21d0982cd49c83f2226486",
    "author": "Philip Agnew <philip.agnew@ird.fr>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 0.1.0\n",
    "time": 1603525805
  },
  "_maintainer": {
    "name": "Philip Agnew",
    "email": "philip.agnew@ird.fr",
    "login": "philipagnew",
    "description": "",
    "uuid": 49551796
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "bbmle",
      "role": "Depends"
    },
    {
      "package": "R",
      "version": ">= 2.10",
      "role": "Depends"
    },
    {
      "package": "stats4",
      "role": "Depends"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "stats",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 0,
  "_contributors": [
    {
      "user": "philipagnew",
      "count": 1,
      "uuid": 49551796
    }
  ],
  "_userbio": {
    "uuid": 49551796,
    "type": "user",
    "name": "philipagnew"
  },
  "_downloads": {
    "count": 243,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/anovir"
  },
  "_searchresults": 20,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/anovir.html",
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "manual.pdf"
  ],
  "_realowner": "philipagnew",
  "_cranurl": false,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2020-10-24"
    }
  ],
  "_exports": [
    "av_long_infected",
    "av_long_uninfected",
    "check_data",
    "conf_ints_virulence",
    "etd_infected",
    "etd_uninfected",
    "nll_basic",
    "nll_basic_logscale",
    "nll_controls",
    "nll_exposed_infected",
    "nll_frailty",
    "nll_frailty_correlated",
    "nll_frailty_logscale",
    "nll_frailty_shared",
    "nll_proportional_virulence",
    "nll_recovery",
    "nll_recovery_II",
    "nll_two_inf_subpops_obs",
    "nll_two_inf_subpops_unobs",
    "sim_data_nll_basic"
  ],
  "_datasets": [
    {
      "name": "data_blanford",
      "title": "Full data from Blanford et al (2012)",
      "object": "data_blanford",
      "class": [
        "data.frame"
      ],
      "fields": [
        "block",
        "treatment",
        "replicate_cage",
        "day",
        "censor",
        "d",
        "inf",
        "t",
        "fq"
      ],
      "rows": 1320,
      "table": true,
      "tojson": true
    },
    {
      "name": "data_lorenz",
      "title": "A subset of data from Lorenz & Koella (2011)",
      "object": "data_lorenz",
      "class": [
        "data.frame"
      ],
      "fields": [
        "Infectious.dose",
        "Food",
        "Sex",
        "Spore.Count",
        "t",
        "censored",
        "d",
        "g"
      ],
      "rows": 256,
      "table": true,
      "tojson": true
    },
    {
      "name": "data_parker",
      "title": "Full data from Parker et al (2014)",
      "object": "data_parker",
      "class": [
        "data.frame"
      ],
      "fields": [
        "Genotype",
        "SD",
        "Fecundity",
        "Sporulation",
        "Status",
        "Time",
        "dose",
        "censored",
        "d",
        "t",
        "g"
      ],
      "rows": 328,
      "table": true,
      "tojson": true
    },
    {
      "name": "recovery_data",
      "title": "Simulated recovery data",
      "object": "recovery_data",
      "class": [
        "data.frame"
      ],
      "fields": [
        "control.d",
        "control.c",
        "infected.d",
        "infected.c",
        "recovered.d",
        "recovered.c",
        "censor",
        "d",
        "t",
        "fq"
      ],
      "rows": 120,
      "table": true,
      "tojson": true
    },
    {
      "name": "recovery_data_II",
      "title": "Simulated recovery data, with no background mortality",
      "object": "recovery_data_II",
      "class": [
        "data.frame"
      ],
      "fields": [
        "control.d",
        "control.c",
        "infected.d",
        "infected.c",
        "recovered.d",
        "recovered.c",
        "censor",
        "d",
        "t",
        "fq"
      ],
      "rows": 120,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "anovir-package",
      "title": "anovir: Analysis of Virulence",
      "topics": [
        "anovir-package",
        "anovir"
      ]
    },
    {
      "page": "av_long_infected",
      "title": "Average longevity: estimate for infected hosts",
      "topics": [
        "av_long_infected"
      ]
    },
    {
      "page": "av_long_uninfected",
      "title": "Average longevity: estimate for uninfected hosts",
      "topics": [
        "av_long_uninfected"
      ]
    },
    {
      "page": "check_data",
      "title": "Checks data are correctly described for models",
      "topics": [
        "check_data"
      ]
    },
    {
      "page": "conf_ints_virulence",
      "title": "Approximate 95% confidence intervals for virulence",
      "topics": [
        "conf_ints_virulence"
      ]
    },
    {
      "page": "data_blanford",
      "title": "Full data from Blanford et al (2012)",
      "topics": [
        "data_blanford"
      ]
    },
    {
      "page": "data_lorenz",
      "title": "A subset of data from Lorenz & Koella (2011)",
      "topics": [
        "data_lorenz"
      ]
    },
    {
      "page": "data_parker",
      "title": "Full data from Parker et al (2014)",
      "topics": [
        "data_parker"
      ]
    },
    {
      "page": "etd_infected",
      "title": "Expected time of death: infected hosts",
      "topics": [
        "etd_infected"
      ]
    },
    {
      "page": "etd_uninfected",
      "title": "Expected time of death: uninfected hosts",
      "topics": [
        "etd_uninfected"
      ]
    },
    {
      "page": "nll_basic",
      "title": "Negative log-likelihood function: basic model",
      "topics": [
        "nll_basic"
      ]
    },
    {
      "page": "nll_basic_logscale",
      "title": "Negative log-likelihood function: basic model on logscale",
      "topics": [
        "nll_basic_logscale"
      ]
    },
    {
      "page": "nll_controls",
      "title": "Negative log-likelihood function: control data only",
      "topics": [
        "nll_controls"
      ]
    },
    {
      "page": "nll_exposed_infected",
      "title": "Negative log-likelihood function: exposed-infected",
      "topics": [
        "nll_exposed_infected"
      ]
    },
    {
      "page": "nll_frailty",
      "title": "Negative log-likelihood function: frailty",
      "topics": [
        "nll_frailty"
      ]
    },
    {
      "page": "nll_frailty_correlated",
      "title": "Negative log-likelihood function: correlated frailty model",
      "topics": [
        "nll_frailty_correlated"
      ]
    },
    {
      "page": "nll_frailty_logscale",
      "title": "Negative log-likelihood function: frailty variables on logscale",
      "topics": [
        "nll_frailty_logscale"
      ]
    },
    {
      "page": "nll_frailty_shared",
      "title": "Negative log-likelihood function: frailty shared",
      "topics": [
        "nll_frailty_shared"
      ]
    },
    {
      "page": "nll_proportional_virulence",
      "title": "Negative log-likelihood function: nll proportional virulence",
      "topics": [
        "nll_proportional_virulence"
      ]
    },
    {
      "page": "nll_recovery",
      "title": "Negative log-likelihood function: recovery model",
      "topics": [
        "nll_recovery"
      ]
    },
    {
      "page": "nll_recovery_II",
      "title": "Negative log-likelihood function: recovery model, no background mortality",
      "topics": [
        "nll_recovery_II"
      ]
    },
    {
      "page": "nll_two_inf_subpops_obs",
      "title": "Negative log-likelihood function: two observed subpopulations of infected hosts",
      "topics": [
        "nll_two_inf_subpops_obs"
      ]
    },
    {
      "page": "nll_two_inf_subpops_unobs",
      "title": "Negative log-likelihood function: two unobserved subpopulations of infected hosts",
      "topics": [
        "nll_two_inf_subpops_unobs"
      ]
    },
    {
      "page": "recovery_data",
      "title": "Simulated recovery data",
      "topics": [
        "recovery_data"
      ]
    },
    {
      "page": "recovery_data_II",
      "title": "Simulated recovery data, with no background mortality",
      "topics": [
        "recovery_data_II"
      ]
    },
    {
      "page": "sim_data_nll_basic",
      "title": "Function simulating survival data for nll_basic",
      "topics": [
        "sim_data_nll_basic"
      ]
    }
  ],
  "_rundeps": [
    "bbmle",
    "bdsmatrix",
    "lattice",
    "MASS",
    "Matrix",
    "mvtnorm",
    "numDeriv"
  ],
  "_vignettes": [
    {
      "source": "confidence_intervals.Rmd",
      "filename": "confidence_intervals.html",
      "title": "Confidence intervals",
      "engine": "knitr::rmarkdown",
      "headings": [
        "The delta method",
        "Setting confidence interval bounds",
        "Worked example: 1 random variable",
        "Worked example: 2 random variables",
        "Part I: estimate parameter variables",
        "Part II: calculate confidence intervals",
        "Part III: compare results with those of conf_ints_virulence",
        "Worked example: 3 random variables",
        "Confidence intervals back-calculated from nll_basic_logscale",
        "References"
      ],
      "created": "2020-10-24 07:50:05",
      "modified": "2020-10-24 07:50:05",
      "commits": 1
    },
    {
      "source": "data_format.Rmd",
      "filename": "data_format.html",
      "title": "Data format",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "General format required",
        "Specific formats",
        "nll_two_inf_subpops_obs",
        "nll_recovery",
        "nll_recovery_II"
      ],
      "created": "2020-10-24 07:50:05",
      "modified": "2020-10-24 07:50:05",
      "commits": 1
    },
    {
      "source": "Introduction.Rmd",
      "filename": "Introduction.html",
      "title": "Introduction",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Population dynamics",
        "Empirical setting",
        "Survival functions",
        "Relative survival",
        "Relative survival and virulence",
        "References"
      ],
      "created": "2020-10-24 07:50:05",
      "modified": "2020-10-24 07:50:05",
      "commits": 1
    },
    {
      "source": "nll_functions.Rmd",
      "filename": "nll_functions.html",
      "title": "Likelihood functions described",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Log-likelihood expressions: no censoring",
        "Log-likelihood expressions: with censoring",
        "Log-likelihood expressions: relative survival, with censoring",
        "Likelihood functions in this package",
        "The functions:",
        "nll_basic",
        "nll_basic_logscale",
        "nll_controls",
        "nll_exposed_infected",
        "nll_frailty",
        "nll_frailty_correlated",
        "nll_frailty_logscale",
        "nll_frailty_shared",
        "nll_proportional_virulence",
        "nll_recovery",
        "nll_recovery_II",
        "nll_two_inf_subpops_obs",
        "nll_two_inf_subpops_unobs",
        "Back to top",
        "References"
      ],
      "created": "2020-10-24 07:50:05",
      "modified": "2020-10-24 07:50:05",
      "commits": 1
    },
    {
      "source": "nll_functions_modifying.Rmd",
      "filename": "nll_functions_modifying.html",
      "title": "Modifying nll functions",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Modifying nll_basic",
        "Default: 4 variables to estimate",
        "Modified: 5 variables to estimate",
        "References"
      ],
      "created": "2020-10-24 07:50:05",
      "modified": "2020-10-24 07:50:05",
      "commits": 1
    },
    {
      "source": "probability_distributions.Rmd",
      "filename": "probability_distributions.html",
      "title": "Probability distribution functions",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Parameters",
        "Weibull distribution",
        "Gumbel distribution",
        "Fréchet distribution",
        "Exponential distribution",
        "back to top",
        "Notes",
        "Linear transformations of cumulative survival"
      ],
      "created": "2020-10-24 07:50:05",
      "modified": "2020-10-24 07:50:05",
      "commits": 1
    },
    {
      "source": "starting_values.Rmd",
      "filename": "starting_values.html",
      "title": "Starting values",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Linear regression of transformed cumulative survival data",
        "Non-linear regression of cumulative survival data",
        "Limitations to regression of cumulative survival data",
        "Example",
        "Linear regressions",
        "Non-linear regressions",
        "Maximum likelihood estimation",
        "Compare models",
        "References"
      ],
      "created": "2020-10-24 07:50:05",
      "modified": "2020-10-24 07:50:05",
      "commits": 1
    },
    {
      "source": "the_exponential_distribution.Rmd",
      "filename": "the_exponential_distribution.html",
      "title": "The exponential distribution",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Example: background rate of mortality constant",
        "References"
      ],
      "created": "2020-10-24 07:50:05",
      "modified": "2020-10-24 07:50:05",
      "commits": 1
    },
    {
      "source": "nll_functions_using.Rmd",
      "filename": "nll_functions_using.html",
      "title": "Using nll functions",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduciton",
        "Two-step preparation",
        "Step #1",
        "Step #2",
        "References"
      ],
      "created": "2020-10-24 07:50:05",
      "modified": "2020-10-24 07:50:05",
      "commits": 1
    },
    {
      "source": "worked_examples_I.Rmd",
      "filename": "worked_examples_I.html",
      "title": "Worked examples I",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "S06. Analysis of Blanford et al. data (i)",
        "S08. Analysis of the Lorenz & Koella data",
        "S10. Analysis of Blanford et al. data (ii)",
        "S11. Analysis of Parker et al. data",
        "S12. Exposed-but-uninfected hosts model",
        "S14. Lorenz & Koella pooled data",
        "S15. Shared and correlated frailty models",
        "References"
      ],
      "created": "2020-10-24 07:50:05",
      "modified": "2020-10-24 07:50:05",
      "commits": 1
    },
    {
      "source": "worked_examples_II.Rmd",
      "filename": "worked_examples_II.html",
      "title": "Worked examples II",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Extending nll_proportional_virulence to multiple treatments",
        "Modifying nll_basic_logscale",
        "References"
      ],
      "created": "2020-10-24 07:50:05",
      "modified": "2020-10-24 07:50:05",
      "commits": 1
    }
  ],
  "_score": 3.342422680822206,
  "_indexed": true,
  "_nocasepkg": "anovir",
  "_universes": [
    "philipagnew"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-05-21T08:06:29.000Z",
      "distro": "noble",
      "commit": "80ffca0c6bebcc536d21d0982cd49c83f2226486",
      "fileid": "7fbdd3807561ab5708a2167102bff843dee344365d75ec8bea4c385ae7b9bcf6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/philipagnew/actions/runs/26213450530"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-05-21T08:06:24.000Z",
      "distro": "noble",
      "commit": "80ffca0c6bebcc536d21d0982cd49c83f2226486",
      "fileid": "32672fa0b023f707a5d87fdafb3cd26d7b957b2e44fbbb52695f148bfbd15430",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/philipagnew/actions/runs/26213450530"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-05-21T08:06:43.000Z",
      "commit": "80ffca0c6bebcc536d21d0982cd49c83f2226486",
      "fileid": "45ab652ff2e94e45c433e857d6031e3a0a29761fce0523e8f7db13427baa975b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/philipagnew/actions/runs/26213450530"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-05-21T08:06:29.000Z",
      "commit": "80ffca0c6bebcc536d21d0982cd49c83f2226486",
      "fileid": "d227b8c944346bbfb0fb31fbc3a5d313ebc6f67a0095dee7ade1403d4d91e12a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/philipagnew/actions/runs/26213450530"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.0",
      "date": "2026-05-21T20:39:00.000Z",
      "commit": "80ffca0c6bebcc536d21d0982cd49c83f2226486",
      "fileid": "4f51d13ce0e0ed46423d6236387283b0e4ae09c41d8609a60011cf0d9743a2ab",
      "status": "success",
      "buildurl": "https://github.com/r-universe/philipagnew/actions/runs/26213450530"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-05-21T08:05:39.000Z",
      "commit": "80ffca0c6bebcc536d21d0982cd49c83f2226486",
      "fileid": "4e3e69e4532905d5cdff7a1240f83b6f233e35ce30e4ab084626fd9d7bffde88",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/philipagnew/actions/runs/26213450530"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-05-21T08:05:37.000Z",
      "commit": "80ffca0c6bebcc536d21d0982cd49c83f2226486",
      "fileid": "8b5690621fa76b817b3f0b62ed8ffc7af1c4dd6225ab30d06104453c120a980b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/philipagnew/actions/runs/26213450530"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-05-21T08:05:48.000Z",
      "commit": "80ffca0c6bebcc536d21d0982cd49c83f2226486",
      "fileid": "28d007b30ce8e035d9ce61b49af8bafd2bd3745fc4c17de4ef28f4c41fafedbb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/philipagnew/actions/runs/26213450530"
    }
  ]
}