|
1 | 1 |
|
2 | 2 | <!-- badges: start -->
|
3 |
| - [](https://github.com/WHOequity/healthequal/actions/workflows/R-CMD-check.yaml) |
| 3 | + |
| 4 | +[](https://github.com/WHOequity/healthequal/actions/workflows/R-CMD-check.yaml) |
| 5 | + |
4 | 6 | <!-- badges: end -->
|
| 7 | +<!-- README.md is generated from README.Rmd. Please edit that file --> |
5 | 8 |
|
6 |
| -# healthequal |
| 9 | +# healthequal <a href='https://github.com/WHOequity/healthequal/'> |
7 | 10 |
|
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. |
9 | 13 |
|
10 | 14 | # Installation
|
11 | 15 |
|
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: |
13 | 18 |
|
14 | 19 | ``` r
|
15 | 20 | install.packages("healthequal")
|
16 | 21 | ```
|
17 | 22 |
|
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: |
19 | 25 |
|
20 | 26 | ``` r
|
21 | 27 | # install.packages("remotes")
|
22 | 28 | remotes::install_github("WHO/helathequal")
|
23 | 29 | ```
|
24 | 30 |
|
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 | + |
54 | 77 | # Package data
|
55 | 78 |
|
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. |
57 | 83 |
|
58 | 84 | ### Ordered and Nonordered data
|
| 85 | + |
59 | 86 | ``` r
|
60 | 87 | data(OrderedSample)
|
61 | 88 | head(OrderedSample)
|
62 | 89 | ```
|
63 | 90 |
|
64 |
| -```r |
| 91 | +``` r |
65 | 92 | data(NonorderedSample)
|
66 | 93 | head(NonorderedSample)
|
67 | 94 | ```
|
| 95 | + |
68 | 96 | ### Disagregated data
|
69 | 97 |
|
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. |
71 | 101 |
|
72 |
| -```r |
| 102 | +``` r |
73 | 103 | data(OrderedSampleMultipleind)
|
74 | 104 | head(OrderedSampleMultipleind)
|
75 | 105 | ```
|
76 | 106 |
|
77 |
| -```r |
| 107 | +``` r |
78 | 108 | data(NonorderedSampleMultipleind)
|
79 | 109 | head(NonorderedSampleMultipleind)
|
80 | 110 | ```
|
81 | 111 |
|
82 | 112 | ### More info on the datasets
|
83 | 113 |
|
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: |
85 | 116 |
|
86 |
| -```r |
| 117 | +``` r |
87 | 118 | ?healthequal::OrderedSample
|
88 | 119 | ?healthequal::NonorderedSample
|
89 | 120 | ?healthequal::OrderedSampleMultipleind
|
90 | 121 | ?healthequal::NonorderedSampleMultipleind
|
91 | 122 | ?healthequal::IndividualSample
|
92 | 123 | ```
|
93 |
| - |
94 | 124 |
|
95 | 125 | # References:
|
96 | 126 |
|
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