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.
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)
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.
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.