Package: anovir 0.1.0

anovir: Analysis of Virulence

Epidemiological population dynamics models traditionally define a pathogen's virulence as the increase in the per capita rate of mortality of infected hosts due to infection. This package provides functions allowing virulence to be estimated by maximum likelihood techniques. The approach is based on the analysis of relative survival comparing survival in matching cohorts of infected vs. uninfected hosts (Agnew 2019) <doi:10.1101/530709>.

Authors:Philip Agnew [aut, cre], Jimmy Lopez [aut]

anovir_0.1.0.tar.gz
anovir_0.1.0.zip(r-4.5)anovir_0.1.0.zip(r-4.4)anovir_0.1.0.zip(r-4.3)
anovir_0.1.0.tgz(r-4.4-any)anovir_0.1.0.tgz(r-4.3-any)
anovir_0.1.0.tar.gz(r-4.5-noble)anovir_0.1.0.tar.gz(r-4.4-noble)
anovir_0.1.0.tgz(r-4.4-emscripten)anovir_0.1.0.tgz(r-4.3-emscripten)
anovir.pdf |anovir.html
anovir/json (API)

# Install 'anovir' in R:
install.packages('anovir', repos = c('https://philipagnew.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Datasets:

On CRAN:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

20 exports 0.00 score 7 dependencies 20 scripts 209 downloads

Last updated 4 years agofrom:80ffca0c6b. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKAug 24 2024
R-4.5-winOKAug 24 2024
R-4.5-linuxOKAug 24 2024
R-4.4-winOKAug 24 2024
R-4.4-macOKAug 24 2024
R-4.3-winOKAug 24 2024
R-4.3-macOKAug 24 2024

Exports:av_long_infectedav_long_uninfectedcheck_dataconf_ints_virulenceetd_infectedetd_uninfectednll_basicnll_basic_logscalenll_controlsnll_exposed_infectednll_frailtynll_frailty_correlatednll_frailty_logscalenll_frailty_sharednll_proportional_virulencenll_recoverynll_recovery_IInll_two_inf_subpops_obsnll_two_inf_subpops_unobssim_data_nll_basic

Dependencies:bbmlebdsmatrixlatticeMASSMatrixmvtnormnumDeriv

Confidence intervals

Rendered fromconfidence_intervals.Rmdusingknitr::rmarkdownon Aug 24 2024.

Last update: 2020-10-24
Started: 2020-10-24

Data format

Rendered fromdata_format.Rmdusingknitr::rmarkdownon Aug 24 2024.

Last update: 2020-10-24
Started: 2020-10-24

Introduction

Rendered fromIntroduction.Rmdusingknitr::rmarkdownon Aug 24 2024.

Last update: 2020-10-24
Started: 2020-10-24

Likelihood functions described

Rendered fromnll_functions.Rmdusingknitr::rmarkdownon Aug 24 2024.

Last update: 2020-10-24
Started: 2020-10-24

Modifying nll functions

Rendered fromnll_functions_modifying.Rmdusingknitr::rmarkdownon Aug 24 2024.

Last update: 2020-10-24
Started: 2020-10-24

Probability distribution functions

Rendered fromprobability_distributions.Rmdusingknitr::rmarkdownon Aug 24 2024.

Last update: 2020-10-24
Started: 2020-10-24

Starting values

Rendered fromstarting_values.Rmdusingknitr::rmarkdownon Aug 24 2024.

Last update: 2020-10-24
Started: 2020-10-24

The exponential distribution

Rendered fromthe_exponential_distribution.Rmdusingknitr::rmarkdownon Aug 24 2024.

Last update: 2020-10-24
Started: 2020-10-24

Using nll functions

Rendered fromnll_functions_using.Rmdusingknitr::rmarkdownon Aug 24 2024.

Last update: 2020-10-24
Started: 2020-10-24

Worked examples I

Rendered fromworked_examples_I.Rmdusingknitr::rmarkdownon Aug 24 2024.

Last update: 2020-10-24
Started: 2020-10-24

Worked examples II

Rendered fromworked_examples_II.Rmdusingknitr::rmarkdownon Aug 24 2024.

Last update: 2020-10-24
Started: 2020-10-24

Readme and manuals

Help Manual

Help pageTopics
anovir: Analysis of Virulenceanovir-package anovir
Average longevity: estimate for infected hostsav_long_infected
Average longevity: estimate for uninfected hostsav_long_uninfected
Checks data are correctly described for modelscheck_data
Approximate 95% confidence intervals for virulenceconf_ints_virulence
Full data from Blanford et al (2012)data_blanford
A subset of data from Lorenz & Koella (2011)data_lorenz
Full data from Parker et al (2014)data_parker
Expected time of death: infected hostsetd_infected
Expected time of death: uninfected hostsetd_uninfected
Negative log-likelihood function: basic modelnll_basic
Negative log-likelihood function: basic model on logscalenll_basic_logscale
Negative log-likelihood function: control data onlynll_controls
Negative log-likelihood function: exposed-infectednll_exposed_infected
Negative log-likelihood function: frailtynll_frailty
Negative log-likelihood function: correlated frailty modelnll_frailty_correlated
Negative log-likelihood function: frailty variables on logscalenll_frailty_logscale
Negative log-likelihood function: frailty sharednll_frailty_shared
Negative log-likelihood function: nll proportional virulencenll_proportional_virulence
Negative log-likelihood function: recovery modelnll_recovery
Negative log-likelihood function: recovery model, no background mortalitynll_recovery_II
Negative log-likelihood function: two observed subpopulations of infected hostsnll_two_inf_subpops_obs
Negative log-likelihood function: two unobserved subpopulations of infected hostsnll_two_inf_subpops_unobs
Simulated recovery datarecovery_data
Simulated recovery data, with no background mortalityrecovery_data_II
Function simulating survival data for nll_basicsim_data_nll_basic