-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.Rmd
184 lines (139 loc) · 6.66 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, echo = FALSE}
knitr::opts_chunk$set(
error = FALSE,
warning = FALSE,
message = FALSE,
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-"
)
```
# oldr: An Implementation of the Rapid Assessment Method for Older People (RAM-OP) <img src="man/figures/logo.png" width="200" align="right" />
<!-- badges: start -->
[![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)
[![Lifecycle: stable](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://lifecycle.r-lib.org/articles/stages.html#stable)
[![R-CMD-check](https://github.com/rapidsurveys/oldr/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/rapidsurveys/oldr/actions/workflows/R-CMD-check.yaml)
[![R-hub](https://github.com/rapidsurveys/oldr/actions/workflows/rhub.yaml/badge.svg)](https://github.com/rapidsurveys/oldr/actions/workflows/rhub.yaml)
[![test-coverage](https://github.com/rapidsurveys/oldr/actions/workflows/test-coverage.yaml/badge.svg)](https://github.com/rapidsurveys/oldr/actions/workflows/test-coverage.yaml)
[![codecov](https://codecov.io/gh/rapidsurveys/oldr/branch/main/graph/badge.svg)](https://app.codecov.io/gh/rapidsurveys/oldr)
[![CodeFactor](https://www.codefactor.io/repository/github/rapidsurveys/oldr/badge)](https://www.codefactor.io/repository/github/rapidsurveys/oldr)
[![DOI](https://zenodo.org/badge/105472081.svg)](https://zenodo.org/badge/latestdoi/105472081)
<!-- badges: end -->
[HelpAge International](https://www.helpage.org), [VALID International](http://www.validinternational.org), and [Brixton Health](http://www.brixtonhealth.com), with financial assistance from the [Humanitarian Innovation Fund (HIF)](http://www.elrha.org/hif/home/), have developed a **Rapid Assessment Method for Older People (RAM-OP)** that provides accurate and reliable estimates of the needs of older people. The method uses simple procedures, in a short time frame (i.e. about two weeks including training, data collection, data entry, and data analysis), and at considerably lower cost than other methods. The **RAM-OP** method is based on the following principles:
* Use of a familiar *“household survey”* design employing a two-stage cluster sample design optimised to allow the use of a small primary sample (*m ≥ 16 clusters*) and a small overall (*n ≥ 192*) sample.
* Assessment of multiple dimensions of need in older people (including prevalence of global, moderate and severe acute malnutrition) using, whenever possible, standard and well-tested indicators and question sets.
* Data analysis performed using modern computer-intensive methods to allow estimates of indicator levels to be made with useful precision using a small sample size.
## Installation
You can install `oldr` from [CRAN](https://cran.r-project.org) with:
```{r install-cran, echo = TRUE, eval = FALSE}
install.packages("oldr")
```
You can install the development version of `oldr` from [GitHub](https://github.com/rapidsurveys/oldr) with:
```{r install, eval = FALSE}
if(!require(remotes)) install.packages("remotes")
remotes::install_github("rapidsurveys/oldr")
```
## Usage
This package contains functions that support in the data processing, analysis and visualisation of RAM-OP survey datasets collected using the standard RAM-OP survey questionnaire.
The figure below illustrates the RAM-OP workflow and indicates which functions in the `oldr` package support which particular step in the process.
```{r ramOPworkflow, echo = FALSE, eval = FALSE, fig.width = 8, fig.height = 10, fig.align = "center"}
DiagrammeR::grViz("
digraph ramOP {
# a 'graph' statement
graph [overlap = false, fontsize = 14, fontname = Helvetica]
# Terminal nodes
node [shape = oval, width = 1.5, penwidth = 2, fontsize = 14]
a [label = '@@1'; color = darkgreen; fontcolor = darkgreen];
n [label = '@@14'; color = crimson; fontcolor = crimson];
# Input/output nodes
node [shape = parallelogram, fixedsize = true, height = 1, width = 1.5,
penwidth = 2, color = royalblue1, fontcolor = royalblue1]
b [label = '@@2'];
l [label = '@@12']
# Process nodes
node [shape = rect]
d [label = '@@4'];
g [label = '@@7'];
h [label = '@@8'];
j [label = '@@10'];
# Package nodes
node [shape = oval, fixedsize = TRUE, width = 2.5, penwidth = 2,
fontsize = 14, fontname = Courier, color = darkviolet,
fontcolor = darkviolet]
c [label = '@@3';];
e [label = '@@5';];
f [label = '@@6'];
i [label = '@@9'];
k [label = '@@11'];
m [label = '@@13'];
edge [minlen = 2, arrowsize = 0.75, penwidth = 2, color = dimgray]
a -> b
b -> d
d -> g
d -> h
g -> j
h -> j
j -> l
l -> n
edge [minlen = 3]
b -> c
c -> b
d -> e
e -> d
f -> g
g -> f
h -> i
i -> h
j -> k
k -> j
l -> m
m -> l
subgraph {
rank = same; b; c;
}
subgraph {
rank = same; d; e;
}
subgraph {
rank = same; f; g; h; i;
}
subgraph {
rank = same; j; k
}
subgraph {
rank = same; l; m;
}
}
[1]: 'START'
[2]: 'Collect\\ndata'
[3]: 'EpiData\\nor\\nOpen Data Kit'
[4]: 'Process\\nand\\nrecode\\ndata'
[5]: 'create_op_\\nfunctions'
[6]: 'estimate_classic'
[7]: 'Estimate\\nindicators'
[8]: 'Estimate\\nanthropometric\\nindicators'
[9]: 'estimate_probit'
[10]: 'Visualise\\nestimates'
[11]: 'chart_\\nfunctions'
[12]: 'Report\\nestimates'
[13]: 'report_op_\\nfunctions'
[14]: 'END'
"
)
```
```{r workflow, echo = FALSE, eval = TRUE, fig.align = "center", out.width = "80%"}
knitr::include_graphics("man/figures/ramOPworkflow.png")
```
For a more detailed description of the RAM-OP survey, read the [RAM-OP manual](https://rapidsurveys.io/ramOPmanual/).
## Citation
If you find the `oldr` package useful, please cite using the suggested citation provided by a call to the `citation` function as follows:
```{r cite}
citation("oldr")
```
## Community guidelines
Feedback, bug reports, and feature requests are welcome; file issues or seek support [here](https://github.com/rapidsurveys/oldr/issues). If you would like to contribute to the package, please see our [contributing guidelines](https://rapidsurveys.io/oldr/CONTRIBUTING.html).
This project is released with a [Contributor Code of Conduct](https://rapidsurveys.io/oldr/CODE_OF_CONDUCT.html). By contributing to this project, you agree to abide by its terms.