Coder Social home page Coder Social logo

agestand's Introduction

ageStand

ageStand is an R package containing functions to convert malaria parasite rate estimates between age ranges. At present this package has only one exported function convertPrevalence which uses the modified Pull and Grab model introduced in Smith et al. (2007) to convert prevalence estimates for Plasmodium falciparum and P. vivax.

Installing ageStand

To install ageStand you can use the install_github function in the devtools package, like this:

# install devtools if you haven't already
install.packages('devtools')

# load the package
library(devtools)

# install ageStand from GitHub
install_github('ageStand', 'SEEG-Oxford')

# and load it
library(ageStand)

Using ageStand

The package currently contains one function, convertPrevalence, which simplifies conversion of prevalence estimates between age bounds. The following code converts a P. falciparum prevalence estimate for the 2-10 age range to an all-ages prevalence estimate.

convertPrevalence(prevalence = 0.1,
                  age_min_in = 2,
                  age_max_in = 9,
                  age_min_out = 0,
                  age_max_out = 85)

This functions can also be vectorised and applied to P. vivax. For full details see the helpfile for this function by typing ?convertPrevalence (after installing and loading the package) in R.

Getting in touch

Please feel free to file bugs and issues you've had with the package using the GitHub issue tracker to right of this page.

If you'd like to improve the package please feel free to fork the repo and send us a pull request so that we can add it to this package.

Reference

Smith, D. L. et al. Standardizing estimates of the Plasmodium falciparum parasite rate. Malaria Journal 6, 131 (2007).

agestand's People

Contributors

goldingn avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.