Skip to content

Commit 331de46

Browse files
committed
change readme.md
1 parent b179208 commit 331de46

File tree

1 file changed

+76
-46
lines changed

1 file changed

+76
-46
lines changed

README.md

+76-46
Original file line numberDiff line numberDiff line change
@@ -1,100 +1,130 @@
11

22
<!-- badges: start -->
3-
[![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)
3+
4+
[![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)
5+
46
<!-- badges: end -->
7+
<!-- README.md is generated from README.Rmd. Please edit that file -->
58

6-
# healthequal
9+
# healthequal <a href='https://github.com/WHOequity/healthequal/'>
710

8-
The healthequal R package provides computational tools for calculating summary measures of health inequality.
11+
The healthequal R package provides computational tools for calculating
12+
summary measures of health inequality.
913

1014
# Installation
1115

12-
You can install the released version of healthequal from [CRAN](https://CRAN.R-project.org) with:
16+
You can install the released version of healthequal from
17+
[CRAN](https://CRAN.R-project.org) with:
1318

1419
``` r
1520
install.packages("healthequal")
1621
```
1722

18-
The development version can be installed from [GitHub](https://github.com/) with:
23+
The development version can be installed from
24+
[GitHub](https://github.com/) with:
1925

2026
``` r
2127
# install.packages("remotes")
2228
remotes::install_github("WHO/helathequal")
2329
```
2430

25-
# Measures of health inequality included in `healthequal`:
26-
27-
The following summary measures of health inequality are included in the `healthequal` package:
28-
29-
### Simple measures
30-
- Difference (`d`)
31-
- Ratio (`r`)
32-
### Disproportionality measures (ordered dimensions)
33-
- Absolute concentration index (`aci`)
34-
- Relative concentration index (`rci`)
35-
### Regression-based measures (ordered dimensions)
36-
- Slope index of inequality (`sii`)
37-
- Relative index of inequality (`rii`)
38-
### Variance measures (non-ordered dimensions)
39-
- Between-group variance (`bgv`)
40-
- Between-group standard deviation (`bgsd`)
41-
- Coefficient of variation (`covar`)
42-
### Mean difference measures (non-ordered dimensions)
43-
- Mean difference from mean - unweighted and weighted (`mdmu` and `mdmw`)
44-
- Mean difference from best-performing subgroup - unweighted and weighted (`mdbu` and `mdbw`)
45-
- Mean difference from reference subgroup - unweighted and weighted (`mdru` and `mdrw`)
46-
- Index of disparity - unweighted and weighted (`idisu` and `idisw`)
47-
### Disproportionality measures (non-ordered dimensions)
48-
- Theil index (`ti`)
49-
- Mean log deviation (`mld`)
50-
### Impact measures
51-
- Population attributable risk (`parisk`)
52-
- Population attributable fraction (`paf`)
53-
31+
## Measures of health inequality included in `healthequal`:
32+
33+
The following summary measures of health inequality are included in the
34+
`healthequal` package:
35+
36+
### Simple measures
37+
38+
- Difference (`d`)
39+
- Ratio (`r`)
40+
41+
### Disproportionality measures (ordered dimensions)
42+
43+
- Absolute concentration index (`aci`)
44+
- Relative concentration index (`rci`)
45+
46+
### Regression-based measures (ordered dimensions)
47+
48+
- Slope index of inequality (`sii`)
49+
- Relative index of inequality (`rii`)
50+
51+
### Variance measures (non-ordered dimensions)
52+
53+
- Between-group variance (`bgv`)
54+
- Between-group standard deviation (`bgsd`)
55+
- Coefficient of variation (`covar`)
56+
57+
### Mean difference measures (non-ordered dimensions)
58+
59+
- Mean difference from mean - unweighted and weighted (`mdmu` and
60+
`mdmw`)
61+
- Mean difference from best-performing subgroup - unweighted and
62+
weighted (`mdbu` and `mdbw`)
63+
- Mean difference from reference subgroup - unweighted and weighted
64+
(`mdru` and `mdrw`)
65+
- Index of disparity - unweighted and weighted (`idisu` and `idisw`)
66+
67+
### Disproportionality measures (non-ordered dimensions)
68+
69+
- Theil index (`ti`)
70+
- Mean log deviation (`mld`)
71+
72+
### Impact measures
73+
74+
- Population attributable risk (`parisk`)
75+
- Population attributable fraction (`paf`)
76+
5477
# Package data
5578

56-
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.
79+
The `healthequal` package comes with sample data for users to be able to
80+
test the package functions. The `OrderedSample` and `NonorderedSample`
81+
data contain data disaggregated by economic status and subnational
82+
region, respectively, for a single indicator.
5783

5884
### Ordered and Nonordered data
85+
5986
``` r
6087
data(OrderedSample)
6188
head(OrderedSample)
6289
```
6390

64-
```r
91+
``` r
6592
data(NonorderedSample)
6693
head(NonorderedSample)
6794
```
95+
6896
### Disagregated data
6997

70-
The `OrderedSampleMultipleind` and `OrderedSampleMultipleind` data contain disaggregated data by economic status and subnational region, respectively, for two indicators.
98+
The `OrderedSampleMultipleind` and `OrderedSampleMultipleind` data
99+
contain disaggregated data by economic status and subnational region,
100+
respectively, for two indicators.
71101

72-
```r
102+
``` r
73103
data(OrderedSampleMultipleind)
74104
head(OrderedSampleMultipleind)
75105
```
76106

77-
```r
107+
``` r
78108
data(NonorderedSampleMultipleind)
79109
head(NonorderedSampleMultipleind)
80110
```
81111

82112
### More info on the datasets
83113

84-
For information about the datasets, type the following commands, which will display the corresponding dataset help file:
114+
For information about the datasets, type the following commands, which
115+
will display the corresponding dataset help file:
85116

86-
```r
117+
``` r
87118
?healthequal::OrderedSample
88119
?healthequal::NonorderedSample
89120
?healthequal::OrderedSampleMultipleind
90121
?healthequal::NonorderedSampleMultipleind
91122
?healthequal::IndividualSample
92123
```
93-
94124

95125
# References:
96126

97-
Schlotheuber, A., & Hosseinpoor, A. R. (2022).
98-
Summary measures of health inequality: A review of existing
99-
measures and their application. International Journal of
100-
Environmental Research and Public Health, 19 (6), 3697.
127+
Schlotheuber, A., & Hosseinpoor, A. R. (2022). Summary measures of
128+
health inequality: A review of existing measures and their application.
129+
International Journal of Environmental Research and Public Health, 19
130+
(6), 3697.

0 commit comments

Comments
 (0)