-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathREADME.html
286 lines (268 loc) · 12.5 KB
/
README.html
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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>
<meta charset="utf-8">
<meta name="generator" content="quarto-1.2.335">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
<title>readme</title>
<style>
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
div.columns{display: flex; gap: min(4vw, 1.5em);}
div.column{flex: auto; overflow-x: auto;}
div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
ul.task-list{list-style: none;}
ul.task-list li input[type="checkbox"] {
width: 0.8em;
margin: 0 0.8em 0.2em -1.6em;
vertical-align: middle;
}
</style>
<script src="README_files/libs/clipboard/clipboard.min.js"></script>
<script src="README_files/libs/quarto-html/quarto.js"></script>
<script src="README_files/libs/quarto-html/popper.min.js"></script>
<script src="README_files/libs/quarto-html/tippy.umd.min.js"></script>
<script src="README_files/libs/quarto-html/anchor.min.js"></script>
<link href="README_files/libs/quarto-html/tippy.css" rel="stylesheet">
<link href="README_files/libs/quarto-html/quarto-syntax-highlighting.css" rel="stylesheet" id="quarto-text-highlighting-styles">
<script src="README_files/libs/bootstrap/bootstrap.min.js"></script>
<link href="README_files/libs/bootstrap/bootstrap-icons.css" rel="stylesheet">
<link href="README_files/libs/bootstrap/bootstrap.min.css" rel="stylesheet" id="quarto-bootstrap" data-mode="light">
</head>
<body class="fullcontent">
<div id="quarto-content" class="page-columns page-rows-contents page-layout-article">
<main class="content" id="quarto-document-content">
<section id="missing-sdg-gender-indicators" class="level1">
<h1>Missing SDG Gender Indicators</h1>
<p>Reproducibility Package for “Missing SDG Gender Indicators” paper</p>
<section id="overview" class="level2">
<h2 class="anchored" data-anchor-id="overview">Overview</h2>
<p>The code in this replication packages constructs the analysis files and tables and figures for Beegle, Serajuddin, Stacy, and Wadhwa (2023) using R. One main file runs all of the code to generate the data and figures. The file is located in 02_programs/Missing-SDG-Gender-Indicators.Rmd. The replicator should expect the code to run for around 20-30 minutes.</p>
</section>
<section id="directory-structure" class="level2">
<h2 class="anchored" data-anchor-id="directory-structure">Directory Structure</h2>
<ol type="1">
<li><p>01_raw_data contains the raw data for the project for each indicator. This folder contains the raw data from the UN SDG database used in the analysis, as well as raw data from the World Bank World Development Indicators. A number of miscellaneous files are included as well that are used.</p></li>
<li><p>02_programs contains the main replication file for the project, “Missing-SDG-Gender-Indicators.Rmd”. Execute this file to replicate the results. It also contains another file in ./02_programs/misc_scripts/SDG_data_pull.Rmd. This file is used to pull the data from the UN SDG database. It is not necessary to run this file, as the data is already included in the repository. However, it is included for transparency purposes. If this file is executed, the replication code will no longer replicate, as the data will be overwritten.</p></li>
<li><p>03_output_data. This folder contains a number of final output files in either csv or stata .dta format. The most important is SPI_Gender_UNSD_data_5yr.csv, which is used to generate the tables and figures in the paper. The other files are produced in the course of the data production, but are not used in the paper. Some of them were used as sensitivity checks, but the results were not included in the paper.</p></li>
</ol>
</section>
<section id="instructions-to-replicators" class="level2">
<h2 class="anchored" data-anchor-id="instructions-to-replicators">Instructions to Replicators</h2>
<ul>
<li><p>Clone the repository to your local machine.</p></li>
<li><p>Please run 02_programs/Missing-SDG-Gender-Indicators.Rmd to generate the data and figures. This file will run all of the code to generate the data and figures. The replicator should expect the code to run for around 20-30 minutes.</p></li>
<li><p>There should be no need to change the working directory. The code should run as is, because the code is using the <a href="https://here.r-lib.org/">here</a> package in R, which automatically handles file paths on local machines. Make sure the .here file is included when you clone the repository.</p></li>
<li><p>This repository contains several files from the R package “renv”. The renv package helps manage specific package versions used to produce the results in this repository. Because package version conflicts can make code that runs on one system not run on another system, it is important to have a list of the specific package versions used and a workflow for accessing these specific packages. The renv package provides this. In order to use renv, see the renv documentation here (https://rstudio.github.io/renv/articles/renv.html). In general, the renv::restore() command should install all packages found in the renv.lock file in this repository, so that version conflicts do not cause errors.</p></li>
</ul>
<section id="license" class="level3">
<h3 class="anchored" data-anchor-id="license">License</h3>
<p>The data are licensed under a Creative Commons/CC-BY-4.0 license.</p>
</section>
<section id="summary-of-availability" class="level3">
<h3 class="anchored" data-anchor-id="summary-of-availability">Summary of Availability</h3>
<ul class="task-list">
<li><input type="checkbox" disabled="" checked="">All data <strong>are</strong> publicly available.</li>
<li><input type="checkbox" disabled="">Some data <strong>cannot be made</strong> publicly available.</li>
<li><input type="checkbox" disabled=""><strong>No data can be made</strong> publicly available.</li>
</ul>
</section>
<section id="data-sources" class="level3">
<h3 class="anchored" data-anchor-id="data-sources">Data Sources</h3>
<table class="table">
<colgroup>
<col style="width: 20%">
<col style="width: 20%">
<col style="width: 20%">
<col style="width: 20%">
<col style="width: 20%">
</colgroup>
<thead>
<tr class="header">
<th>Data.Name</th>
<th>Data.Files</th>
<th>Location</th>
<th>Provided</th>
<th>Citation</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td>“World Development Indicators</td>
<td>WDIEXCEL.xlsx</td>
<td>01_raw_data/</td>
<td>TRUE</td>
<td>World Bank (2023). World Development Indicators.</td>
</tr>
<tr class="even">
<td>“UN SDG Database”</td>
<td>IT_CEN_MGTN.csv; IT_MOB_OWN.csv; SD_MDP_MUHC.csv;…</td>
<td>01_raw_data/sdg_data/</td>
<td>TRUE</td>
<td>UN Global SDG Database</td>
</tr>
</tbody>
</table>
</section>
<section id="data-description" class="level3">
<h3 class="anchored" data-anchor-id="data-description">Data Description</h3>
<p>There are three main files used in the analysis. Each file will be discussed in turn.</p>
<ol type="1">
<li>SPI_Gender_UNSD_data_5yr.csv</li>
<li>Class.xlsx</li>
<li>WDIEXCEL.xlsx</li>
</ol>
<section id="spi_gender_unsd_data_5yr.csv" class="level4">
<h4 class="anchored" data-anchor-id="spi_gender_unsd_data_5yr.csv">SPI_Gender_UNSD_data_5yr.csv</h4>
<p>This file</p>
</section>
<section id="class.xlsx" class="level4">
<h4 class="anchored" data-anchor-id="class.xlsx">Class.xlsx</h4>
</section>
<section id="wdiexcel.xlsx" class="level4">
<h4 class="anchored" data-anchor-id="wdiexcel.xlsx">WDIEXCEL.xlsx</h4>
</section>
</section>
<section id="software" class="level3">
<h3 class="anchored" data-anchor-id="software">Software</h3>
<p>R version 4.2.1 (2022-06-23 ucrt) – “Funny Looking Kid” was used for data production and to produce the tables and figures.</p>
<p>This repository contains several files from the R package “renv”. The renv package helps manage specific package versions used to produce the results in this repository. Because package version conflicts can make code that runs on one system not run on another system, it is important to have a list of the specific package versions used and a workflow for accessing these specific packages. The renv package provides this. In order to use renv, see the renv documentation here (https://rstudio.github.io/renv/articles/renv.html). In general, the renv::restore() command should install all packages found in the renv.lock file in this repository, so that version conflicts do not cause errors.</p>
</section>
</section>
</section>
</main>
<!-- /main column -->
<script id="quarto-html-after-body" type="application/javascript">
window.document.addEventListener("DOMContentLoaded", function (event) {
const toggleBodyColorMode = (bsSheetEl) => {
const mode = bsSheetEl.getAttribute("data-mode");
const bodyEl = window.document.querySelector("body");
if (mode === "dark") {
bodyEl.classList.add("quarto-dark");
bodyEl.classList.remove("quarto-light");
} else {
bodyEl.classList.add("quarto-light");
bodyEl.classList.remove("quarto-dark");
}
}
const toggleBodyColorPrimary = () => {
const bsSheetEl = window.document.querySelector("link#quarto-bootstrap");
if (bsSheetEl) {
toggleBodyColorMode(bsSheetEl);
}
}
toggleBodyColorPrimary();
const icon = "";
const anchorJS = new window.AnchorJS();
anchorJS.options = {
placement: 'right',
icon: icon
};
anchorJS.add('.anchored');
const clipboard = new window.ClipboardJS('.code-copy-button', {
target: function(trigger) {
return trigger.previousElementSibling;
}
});
clipboard.on('success', function(e) {
// button target
const button = e.trigger;
// don't keep focus
button.blur();
// flash "checked"
button.classList.add('code-copy-button-checked');
var currentTitle = button.getAttribute("title");
button.setAttribute("title", "Copied!");
let tooltip;
if (window.bootstrap) {
button.setAttribute("data-bs-toggle", "tooltip");
button.setAttribute("data-bs-placement", "left");
button.setAttribute("data-bs-title", "Copied!");
tooltip = new bootstrap.Tooltip(button,
{ trigger: "manual",
customClass: "code-copy-button-tooltip",
offset: [0, -8]});
tooltip.show();
}
setTimeout(function() {
if (tooltip) {
tooltip.hide();
button.removeAttribute("data-bs-title");
button.removeAttribute("data-bs-toggle");
button.removeAttribute("data-bs-placement");
}
button.setAttribute("title", currentTitle);
button.classList.remove('code-copy-button-checked');
}, 1000);
// clear code selection
e.clearSelection();
});
function tippyHover(el, contentFn) {
const config = {
allowHTML: true,
content: contentFn,
maxWidth: 500,
delay: 100,
arrow: false,
appendTo: function(el) {
return el.parentElement;
},
interactive: true,
interactiveBorder: 10,
theme: 'quarto',
placement: 'bottom-start'
};
window.tippy(el, config);
}
const noterefs = window.document.querySelectorAll('a[role="doc-noteref"]');
for (var i=0; i<noterefs.length; i++) {
const ref = noterefs[i];
tippyHover(ref, function() {
// use id or data attribute instead here
let href = ref.getAttribute('data-footnote-href') || ref.getAttribute('href');
try { href = new URL(href).hash; } catch {}
const id = href.replace(/^#\/?/, "");
const note = window.document.getElementById(id);
return note.innerHTML;
});
}
const findCites = (el) => {
const parentEl = el.parentElement;
if (parentEl) {
const cites = parentEl.dataset.cites;
if (cites) {
return {
el,
cites: cites.split(' ')
};
} else {
return findCites(el.parentElement)
}
} else {
return undefined;
}
};
var bibliorefs = window.document.querySelectorAll('a[role="doc-biblioref"]');
for (var i=0; i<bibliorefs.length; i++) {
const ref = bibliorefs[i];
const citeInfo = findCites(ref);
if (citeInfo) {
tippyHover(citeInfo.el, function() {
var popup = window.document.createElement('div');
citeInfo.cites.forEach(function(cite) {
var citeDiv = window.document.createElement('div');
citeDiv.classList.add('hanging-indent');
citeDiv.classList.add('csl-entry');
var biblioDiv = window.document.getElementById('ref-' + cite);
if (biblioDiv) {
citeDiv.innerHTML = biblioDiv.innerHTML;
}
popup.appendChild(citeDiv);
});
return popup.innerHTML;
});
}
}
});
</script>
</div> <!-- /content -->
</body></html>