Skip to content

Commit b179208

Browse files
committed
edit citation and readme
1 parent b4194bf commit b179208

File tree

2 files changed

+48
-36
lines changed

2 files changed

+48
-36
lines changed

README.Rmd

+47-35
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ output: github_document
33
---
44

55
<!-- badges: start -->
6+
67
[![R-CMD-check](https://github.com/WHOequity/healthequal/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/WHOequity/healthequal/actions/workflows/R-CMD-check.yaml)
8+
79
<!-- badges: end -->
810

911
<!-- README.md is generated from README.Rmd. Please edit that file -->
@@ -21,7 +23,6 @@ library(healthequal)
2123

2224
# healthequal <a href='https://github.com/WHOequity/healthequal/'>
2325

24-
2526
The healthequal R package provides computational tools for calculating summary measures of health inequality.
2627

2728
# Installation
@@ -43,55 +44,70 @@ remotes::install_github("WHO/helathequal")
4344

4445
The following summary measures of health inequality are included in the `healthequal` package:
4546

46-
### Simple measures
47-
- Difference (`d`)
48-
- Ratio (`r`)
49-
### Disproportionality measures (ordered dimensions)
50-
- Absolute concentration index (`aci`)
51-
- Relative concentration index (`rci`)
52-
### Regression-based measures (ordered dimensions)
53-
- Slope index of inequality (`sii`)
54-
- Relative index of inequality (`rii`)
55-
### Variance measures (non-ordered dimensions)
56-
- Between-group variance (`bgv`)
57-
- Between-group standard deviation (`bgsd`)
58-
- Coefficient of variation (`covar`)
59-
### Mean difference measures (non-ordered dimensions)
60-
- Mean difference from mean - unweighted and weighted (`mdmu` and `mdmw`)
61-
- Mean difference from best-performing subgroup - unweighted and weighted (`mdbu` and `mdbw`)
62-
- Mean difference from reference subgroup - unweighted and weighted (`mdru` and `mdrw`)
63-
- Index of disparity - unweighted and weighted (`idisu` and `idisw`)
64-
### Disproportionality measures (non-ordered dimensions)
65-
- Theil index (`ti`)
66-
- Mean log deviation (`mld`)
67-
### Impact measures
68-
- Population attributable risk (`parisk`)
69-
- Population attributable fraction (`paf`)
70-
47+
### Simple measures
48+
49+
- Difference (`d`)
50+
- Ratio (`r`)
51+
52+
### Disproportionality measures (ordered dimensions)
53+
54+
- Absolute concentration index (`aci`)
55+
- Relative concentration index (`rci`)
56+
57+
### Regression-based measures (ordered dimensions)
58+
59+
- Slope index of inequality (`sii`)
60+
- Relative index of inequality (`rii`)
61+
62+
### Variance measures (non-ordered dimensions)
63+
64+
- Between-group variance (`bgv`)
65+
- Between-group standard deviation (`bgsd`)
66+
- Coefficient of variation (`covar`)
67+
68+
### Mean difference measures (non-ordered dimensions)
69+
70+
- Mean difference from mean - unweighted and weighted (`mdmu` and `mdmw`)
71+
- Mean difference from best-performing subgroup - unweighted and weighted (`mdbu` and `mdbw`)
72+
- Mean difference from reference subgroup - unweighted and weighted (`mdru` and `mdrw`)
73+
- Index of disparity - unweighted and weighted (`idisu` and `idisw`)
74+
75+
### Disproportionality measures (non-ordered dimensions)
76+
77+
- Theil index (`ti`)
78+
- Mean log deviation (`mld`)
79+
80+
### Impact measures
81+
82+
- Population attributable risk (`parisk`)
83+
- Population attributable fraction (`paf`)
84+
7185
# Package data
7286

7387
The `healthequal` package comes with sample data for users to be able to test the package functions. The `OrderedSample` and `NonorderedSample` data contain data disaggregated by economic status and subnational region, respectively, for a single indicator.
7488

7589
### Ordered and Nonordered data
90+
7691
``` r
7792
data(OrderedSample)
7893
head(OrderedSample)
7994
```
8095

81-
```r
96+
``` r
8297
data(NonorderedSample)
8398
head(NonorderedSample)
8499
```
100+
85101
### Disagregated data
86102

87103
The `OrderedSampleMultipleind` and `OrderedSampleMultipleind` data contain disaggregated data by economic status and subnational region, respectively, for two indicators.
88104

89-
```r
105+
``` r
90106
data(OrderedSampleMultipleind)
91107
head(OrderedSampleMultipleind)
92108
```
93109

94-
```r
110+
``` r
95111
data(NonorderedSampleMultipleind)
96112
head(NonorderedSampleMultipleind)
97113
```
@@ -100,18 +116,14 @@ head(NonorderedSampleMultipleind)
100116

101117
For information about the datasets, type the following commands, which will display the corresponding dataset help file:
102118

103-
```r
119+
``` r
104120
?healthequal::OrderedSample
105121
?healthequal::NonorderedSample
106122
?healthequal::OrderedSampleMultipleind
107123
?healthequal::NonorderedSampleMultipleind
108124
?healthequal::IndividualSample
109125
```
110-
111126

112127
# References:
113128

114-
Schlotheuber, A., & Hosseinpoor, A. R. (2022).
115-
Summary measures of health inequality: A review of existing
116-
measures and their application. International Journal of
117-
Environmental Research and Public Health, 19 (6), 3697.
129+
Schlotheuber, A., & Hosseinpoor, A. R. (2022). Summary measures of health inequality: A review of existing measures and their application. International Journal of Environmental Research and Public Health, 19 (6), 3697.

inst/CITATION

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ bibentry(
44
author = "Daniel A. Antiporta, Patricia Menendez, Katherine Kirkby, and Ahmad Reza Hosseinpoor",
55
year = 2024,
66
institution = "World Health Organization",
7-
note = "R package version 0.0.1"
7+
note = "R package version 1.0.0"
88
)

0 commit comments

Comments
 (0)