R package SocEpi
The R package SocEpi is developed for health inequalities research. This is the first version of the package and it includes a small number of useful functions such as:
z_scoreto calculate z-scores (for deprivation measures).w_pcntileto calculate percentiles, such as quintiles or deciles from deprivation measures.st_ratefor calculating direct standardized rates with confidence intervals.riifor calculating RII/SII and confidence intervals.smrfor calculating standardized mortality ratios and confidence intervals.
Installation
To install the package in R type:
install.packages("SocEpi")
library(SocEpi)or from Github
install.packages(devtools) # if not installed before
devtools::install_github("m-allik/SocEpi")How to use
Please take a look at the vignette or help files for examples of how to use the package.
Feedback
Please use the GitHub repository's Issues section if you have any comments, suggestions or if you notice any problems with the functions.