Repository navigation
Expand file tree
/
Copy pathhelp.html
More file actions
510 lines (479 loc) · 26.4 KB
/
Copy pathhelp.html
File metadata and controls
510 lines (479 loc) · 26.4 KB
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
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="format-detection" content="telephone=no">
<title>help.html</title>
<style>
html { -webkit-text-size-adjust: 100%; }
body {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 14px; line-height: 1.428;
margin: 0 auto; padding: 0 15px;
}
h1, h2, h3, h4, h5, h6 { margin: 20px 0 10px; }
h1 { font-size: 28px; } h2 { font-size: 24px; }
h3 { font-size: 18px; } h4 { font-size: 16px; }
h5 { font-size: 14px; } h6 { font-size: 12px; }
a { color: #337AB7; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
ul, ol { padding-left: 30px; }
pre, code, samp {
font-size: 13px;
font-family: Courier, monospace;
}
code, samp {
background-color: #F5F5F5;
border-radius: 3px; padding: 3px;
}
pre code, pre samp {
white-space: pre; background: transparent;
border: none; padding: 0;
}
pre {
line-height: 1.33; background-color: #F5F5F5;
border: 1px solid #CCCCCC; border-radius: 3px;
padding: 8px; overflow: auto;
}
</style>
<!-- ═══════════════════════════════════════════════════════════════════════
webdoc2 default theme header
Injected into <head> via: wdinit myfile, replace
(or manually: webdoc init myfile, replace header2(include("header.html")))
To customise: copy this file, edit freely, then point wdinit at it:
wdinit myfile, replace headerfile("my_custom_header.html")
════════════════════════════════════════════════════════════════════════ -->
<!-- Bootstrap 5.3 CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" crossorigin="anonymous">
<!-- Google Fonts: Inter -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap" rel="stylesheet">
<!-- Bootstrap Icons (chevron for back-to-top button) -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css" rel="stylesheet">
<style>
/* ── Theme tokens — override here to change the colour scheme ────────────── */
:root {
--wd-primary: #1B2D55; /* navbar / headings / accents */
--wd-accent: #D44500; /* h2 underline, hover highlights */
--wd-link: #2B6CB0; /* body link colour */
--wd-light-bg: #F5F7FA; /* code blocks, TOC, accordion bg */
--wd-border: #DEE2E6;
--wd-text: #1A1A2E;
--wd-muted: #6C7A8D;
--wd-page-width: 90%; /* default content width; override with wdwidth command */
}
/* ── Always reserve scrollbar space; offset anchors below sticky navbar ──── */
html {
overflow-y: scroll;
scroll-behavior: smooth;
scroll-padding-top: 72px; /* matches navbar height so anchors aren't hidden */
}
/* ── Base typography ──────────────────────────────────────────────────────── */
body {
font-family: 'Inter', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
font-size: 15px;
line-height: 1.68;
color: var(--wd-text);
background-color: #ffffff;
}
/* ── Navbar ───────────────────────────────────────────────────────────────── */
.navbar {
background-color: var(--wd-primary) !important;
padding: 0.55rem 1.5rem;
box-shadow: 0 2px 10px rgba(0,0,0,0.18);
}
.navbar-brand {
font-size: 0.95rem;
font-weight: 700;
letter-spacing: 0.05em;
text-transform: uppercase;
color: #ffffff !important;
}
.navbar-toggler { border-color: rgba(255,255,255,0.4); }
.navbar-toggler-icon { filter: invert(1) brightness(2); }
.navbar-nav .nav-link {
font-size: 0.80rem;
font-weight: 500;
color: rgba(255,255,255,0.78) !important;
padding: 0.5rem 1.05rem !important;
letter-spacing: 0.07em;
text-transform: uppercase;
border-bottom: 2px solid transparent;
transition: color 0.16s ease, border-color 0.16s ease;
}
.navbar-nav .nav-link:hover {
color: #ffffff !important;
border-bottom-color: var(--wd-accent);
}
.navbar-nav .nav-link.active {
color: #ffffff !important;
border-bottom-color: var(--wd-accent);
font-weight: 600;
}
/* ── Navbar dropdowns ─────────────────────────────────────────────────────── */
.navbar .dropdown-menu {
background-color: #ffffff;
border: 1px solid var(--wd-border);
border-radius: 6px;
box-shadow: 0 4px 16px rgba(0,0,0,0.15);
margin-top: 0.25rem;
min-width: 180px;
}
.navbar .dropdown-item {
font-size: 0.85rem;
color: var(--wd-text);
padding: 0.45rem 1rem;
}
.navbar .dropdown-item:hover {
background-color: var(--wd-light-bg);
color: var(--wd-primary);
}
.navbar .dropdown-toggle::after { vertical-align: 0.1em; }
/* ── Headings ─────────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
font-weight: 700;
color: var(--wd-primary);
margin-top: 1.75rem;
margin-bottom: 0.55rem;
}
h1 { font-size: 1.85rem; }
h2 {
font-size: 1.35rem;
border-bottom: 3px solid var(--wd-accent);
padding-bottom: 0.28rem;
}
h3 { font-size: 1.12rem; }
h4 { font-size: 1rem; color: var(--wd-muted); }
/* ── Links ────────────────────────────────────────────────────────────────── */
a { color: var(--wd-link); text-decoration: none; }
a:hover { color: var(--wd-accent); text-decoration: underline; }
/* ── Stata log blocks ─────────────────────────────────────────────────────── */
pre.stlog {
background-color: var(--wd-light-bg);
border: 1px solid var(--wd-border);
border-left: 4px solid var(--wd-primary);
border-radius: 0 6px 6px 0;
padding: 0.9rem 1.2rem;
font-size: 12.5px;
line-height: 1.55;
overflow-x: auto;
margin-bottom: 1.1rem;
}
.stinp { color: var(--wd-primary); font-weight: 600; }
.stres { color: #145A32; }
.stcmt { font-style: italic; opacity: 0.55; }
/* ── Bootstrap accordion (button.ado / graphbutton.ado) ───────────────────── */
.accordion, .accordion-item, .accordion-body { max-width: 100%; }
.accordion-item {
border: 1px solid var(--wd-border);
border-radius: 6px !important;
overflow: hidden;
margin-bottom: 0.5rem;
}
.accordion-button {
font-size: 0.82rem;
font-weight: 500;
background-color: var(--wd-light-bg);
color: var(--wd-primary) !important;
}
.accordion-button:not(.collapsed) {
background-color: var(--wd-primary);
color: #ffffff !important;
box-shadow: none;
}
.accordion-button:not(.collapsed)::after { filter: invert(1) brightness(2); }
.accordion-body { padding: 1rem 1.2rem; background-color: #ffffff; overflow-x: auto; }
/* ── Lists ────────────────────────────────────────────────────────────────── */
/* wdlist (dashed) — LaTeX-like em-dash markers via ::before. */
ul.wd-list-dashed {
list-style: none;
padding-left: 1.2rem;
}
ul.wd-list-dashed > li {
position: relative;
padding-left: 1.2rem;
margin-bottom: 0.15rem;
}
ul.wd-list-dashed > li::before {
content: "—";
position: absolute;
left: 0;
color: var(--wd-primary);
font-weight: 600;
}
/* wditemize (round) and wdenumerate (numbers) use default browser markers. */
ul:not(.wd-list-dashed) > li,
ol > li { margin-bottom: 0.15rem; }
/* ── Figures ──────────────────────────────────────────────────────────────── */
figure { margin: 0.8rem 0; }
figure img {
border-radius: 6px;
box-shadow: 0 2px 14px rgba(0,0,0,0.09);
max-width: 100%;
height: auto;
}
/* ── In-page Table of Contents ────────────────────────────────────────────── */
.wd-toc-wrap {
background-color: var(--wd-light-bg);
border: 1px solid var(--wd-border);
border-left: 4px solid var(--wd-primary);
border-radius: 0 6px 6px 0;
padding: 0.9rem 1.25rem;
margin-bottom: 1.5rem;
display: inline-block;
min-width: 220px;
max-width: 480px;
}
.wd-toc-title {
display: block;
font-size: 0.78rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.09em;
color: var(--wd-primary);
margin-bottom: 0.45rem;
}
.wd-toc-list { margin: 0; padding: 0; list-style: none; }
.wd-toc-list a {
display: block;
color: var(--wd-primary);
font-size: 0.87rem;
line-height: 1.95;
text-decoration: none;
transition: color 0.14s;
}
.wd-toc-list a:hover { color: var(--wd-accent); }
.wd-toc-h2 { padding-left: 0.8rem; }
.wd-toc-h3 { padding-left: 1.6rem; font-size: 0.81rem; }
.wd-toc-h4 { padding-left: 2.4rem; font-size: 0.78rem; }
.wd-toc-h5 { padding-left: 3.2rem; font-size: 0.75rem; }
.wd-toc-h6 { padding-left: 4.0rem; font-size: 0.72rem; }
/* ── Page width — controlled by --wd-page-width; use wdwidth command to change */
.container,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl {
max-width: var(--wd-page-width) !important;
}
/* ── Misc spacing ─────────────────────────────────────────────────────────── */
p { margin-bottom: 0.85rem; }
.container, .container-fluid { padding-top: 0.25rem; padding-bottom: 0.25rem; }
/* ── Back-to-top button ───────────────────────────────────────────────────── */
#wd-back-to-top {
display: none;
position: fixed;
bottom: 2rem; right: 2rem;
z-index: 9999;
width: 46px; height: 46px;
border-radius: 50%;
background-color: var(--wd-primary);
color: #ffffff;
border: none;
font-size: 1.3rem;
line-height: 46px;
text-align: center;
cursor: pointer;
box-shadow: 0 3px 14px rgba(0,0,0,0.22);
transition: background-color 0.18s;
padding: 0;
}
#wd-back-to-top:hover { background-color: var(--wd-accent); }
</style>
<!-- Bootstrap 5.3 JS Bundle — enables navbar toggler + accordion collapse -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js" defer crossorigin="anonymous"></script>
<script>
document.addEventListener('DOMContentLoaded', function () {
/* ── Back-to-top floating button ──────────────────────────────────────── */
var btn = document.createElement('button');
btn.id = 'wd-back-to-top';
btn.title = 'Back to top';
btn.setAttribute('aria-label', 'Back to top');
btn.innerHTML = '<i class="bi bi-chevron-up"></i>';
document.body.appendChild(btn);
window.addEventListener('scroll', function () {
btn.style.display = (window.scrollY > 320) ? 'block' : 'none';
});
btn.addEventListener('click', function () {
window.scrollTo({ top: 0, behavior: 'smooth' });
});
/* ── Auto-generate in-page TOC from headings ──────────────────────────── */
// Finds every element with class "wd-toc-wrap" and fills it with heading links.
// wdtoc.ado writes the container; this script fills it in.
// Depth controlled per-wrap via data-wd-depth (1..6, default 3).
document.querySelectorAll('.wd-toc-wrap').forEach(function (wrap) {
var depth = parseInt(wrap.getAttribute('data-wd-depth') || '3', 10);
if (isNaN(depth) || depth < 1) depth = 3;
if (depth > 6) depth = 6;
var selectors = [];
for (var d = 1; d <= depth; d++) selectors.push('h' + d);
var headings = Array.prototype.slice.call(
document.querySelectorAll(selectors.join(','))
).filter(function (h) {
// Skip headings inside navbar and accordion headers
return !h.closest('.navbar') && !h.classList.contains('accordion-header');
});
if (headings.length === 0) return;
var ul = document.createElement('ul');
ul.className = 'wd-toc-list';
headings.forEach(function (h, i) {
if (!h.id) h.id = 'wdtoc-h-' + i;
var li = document.createElement('li');
li.className = 'wd-toc-' + h.tagName.toLowerCase();
var a = document.createElement('a');
a.href = '#' + h.id;
a.textContent = h.textContent.trim();
li.appendChild(a);
ul.appendChild(li);
});
wrap.appendChild(ul);
});
/* ── Remove stray closing-command echoes from Stata log output ──────────── */
var _wdClosingCmds = ['wdclose', 'buttonclose', 'graphbuttonclose',
'wdnavbarclose', 'wdnavdropdownclose'];
document.querySelectorAll('span.stinp').forEach(function (span) {
var txt = span.textContent.replace(/^\s*\.\s*/, '').trim();
if (_wdClosingCmds.indexOf(txt) !== -1) {
var pre = span.closest('pre.stlog');
span.remove();
if (pre && pre.textContent.trim() === '') pre.remove();
}
});
});
</script>
<style>
.stcmd .stcmt { font-style: italic; opacity: 0.5; }
.stoom, .stcnp { font-style: italic; }
@media screen { .stcnp { display: none; }}
</style>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark mb-3">
<div class="container-fluid">
<a class="navbar-brand" href="index.html" title="Insurance_PriceTransparency_BCBSTX">Documentation</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#mainNavbar" aria-controls="mainNavbar" aria-expanded="false" aria-label="Toggle navigation"><span class="navbar-toggler-icon"></span></button>
<div class="collapse navbar-collapse" id="mainNavbar">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item"><a class="nav-link " href="index.html">Home</a></li>
<li class="nav-item"><a class="nav-link " href="100_data_download.html">100 Download</a></li>
<li class="nav-item"><a class="nav-link " href="200_data_management.html">200 Management</a></li>
<li class="nav-item"><a class="nav-link " href="300_labels.html">300 Labels</a></li>
<li class="nav-item"><a class="nav-link " href="400_data_profiler.html">400 Profiler</a></li>
<li class="nav-item"><a class="nav-link " href="500_aggregation.html">500 Aggregation</a></li>
<li class="nav-item"><a class="nav-link " href="600_analysis.html">600 Analysis</a></li>
<li class="nav-item"><a class="nav-link active" href="help.html">Help</a></li>
</ul>
<span class="navbar-text ms-3" title="Texas 2036"><img src="tx2036_logo.png" alt="Texas 2036" height="18" style="opacity:0.55;vertical-align:middle;" onerror="this.style.display='none'"></span>
</div></div></nav>
<style>pre,.stlog,samp{white-space:pre !important;overflow-x:auto;display:block;font-size:0.8rem;line-height:1.25}table.tbl{font-size:0.85rem}</style>
<h1 id="how-this-archive-works">How this archive works</h1>
<div id="wd-toc" class="wd-toc-wrap" data-wd-depth="2"><strong class="wd-toc-title">Contents</strong></div>
<h2 id="the-30-second-tour">The 30-second tour</h2>
<p>Every data SOURCE we touch gets a folder under <code>_datashare/</code> named for the source agency (e.g. <code>TEA_AEIS</code>, <code>THECB</code>, <code>TDI</code>). Inside every source folder you'll find:</p>
<ul class="wd-list-dashed">
<li><code>01_raw/</code> — raw files exactly as the source provided them. Read-only.</li>
<li><code>02_cleaned/</code> — cleaned analytic <code>.dta</code> files.</li>
<li><code>03_output/</code> — tables, figures, exports for sharing.</li>
<li><code>_code/</code> — Stata do-files that read raw → write cleaned → write output.</li>
<li><code>_documentation/</code> — this website, READMEs, snapshotted source docs.</li>
<li><code>_archive/</code> — prior vintages worth keeping.</li>
</ul>
<h2 id="the-seven-step-stata-pipeline">The seven-step Stata pipeline</h2>
<p>Every datashare project ships with seven numbered do-files in <code>_code/</code>:</p>
<div class="table-responsive"><table class="table table-sm table-striped">
<thead><tr><th>File</th><th>Role</th><th>Writes to</th></tr></thead><tbody>
<tr><td><code>000_controlfile.do</code></td><td>Paths + globals + Stata environment</td><td>(globals only)</td></tr>
<tr><td><code>100_data_download.do</code></td><td>Fetches raw files from the source</td><td><code>01_raw/</code></td></tr>
<tr><td><code>200_data_management.do</code></td><td>Imports raw, cleans, reshapes, merges</td><td><code>02_cleaned/</code></td></tr>
<tr><td><code>300_labels.do</code></td><td>Variable + value labels, notes, characteristics</td><td><code>02_cleaned/</code> (in-place re-save)</td></tr>
<tr><td><code>400_data_profiler.do</code></td><td>Codebook, summary stats, missingness, frequencies</td><td>(webdoc2 page only)</td></tr>
<tr><td><code>500_aggregation.do</code></td><td>Collapse / contract to county-year, statewide, panel</td><td><code>02_cleaned/</code></td></tr>
<tr><td><code>600_analysis.do</code></td><td>Headline figures + tables for this source</td><td><code>03_output/</code></td></tr>
</tbody></table></div>
<p>Each file is independently re-runnable — every do-file calls <code>dsload</code> at the top, which loads <code>000_controlfile.do</code> if its globals aren't already in scope.</p>
<p><code>000_controlfile.do</code> in turn loads <code>050_preferences.do</code> (color palette, graph dimensions, number formats, default file types), so every numbered file inherits the same look and feel without restating preferences.</p>
<h2 id="how-the-website-is-built">How the website is built</h2>
<p>Each numbered do-file is also a webdoc2 document. Running it:</p>
<ol>
<li>Executes the Stata code AND writes the HTML rendering of that code (with collapsible code accordions, embedded log output, and rendered graphs) into <code>_documentation/website/</code>.</li>
<li>Opens with <code>wdinit</code> (Bootstrap 5 + Inter font + back-to-top button), draws a navbar with <code>wdds_navbar</code>, and an in-page TOC with <code>wdtoc</code>.</li>
<li>Wraps code blocks with <code>button</code>/<code>buttonclose</code> (collapsed by default) or <code>wd</code>/<code>wdclose</code> (always-visible log). Graphs use <code>graphbutton</code>/<code>graphbuttonclose</code>.</li>
</ol>
<p>Two extra do-files in <code>_documentation/</code> finish the site:</p>
<ul class="wd-list-dashed">
<li><code>index.do</code> — builds <code>index.html</code>, the landing page (auto-inventories raw/cleaned/output)</li>
<li><code>help.do</code> — builds this page</li>
</ul>
<h2 id="project-metadata-000-controlfile-do">Project metadata (000_controlfile.do)</h2>
<p>Each project carries a small metadata block, set at scaffold time and editable any time:</p>
<div class="table-responsive"><table class="table table-sm table-striped">
<thead><tr><th>Global</th><th>Meaning</th><th>This project</th></tr></thead><tbody>
<tr><td><code>Insurance_PriceTransparency_BCBSTX</code></td><td>folder name (CamelCase, underscored)</td><td>Insurance_PriceTransparency_BCBSTX</td></tr>
<tr><td><code>Transparency-in-Coverage machine-readable files (in-network negotiated rates + prescription drugs) published by Blue Cross and Blue Shield of Texas (HCSC).</code></td><td>one-line description</td><td>Transparency-in-Coverage machine-readable files (in-network negotiated rates + prescription drugs) published by Blue Cross and Blue Shield of Texas (HCSC).</td></tr>
<tr><td><code>https://www.bcbstx.com/member/machine-readable-files</code></td><td>source agency URL</td><td>https://www.bcbstx.com/member/machine-readable-files</td></tr>
<tr><td><code>health care, insurance, prices</code></td><td>topic tag(s)</td><td>health care, insurance, prices</td></tr>
<tr><td><code></code></td><td>yes / no / unsure</td><td></td></tr>
<tr><td><code>monthly refresh (source files restated ~monthly)</code></td><td>refresh cadence</td><td>monthly refresh (source files restated ~monthly)</td></tr>
<tr><td><code></code></td><td>free-text caveats</td><td></td></tr>
<tr><td><code></code></td><td>up to 10 outcome vars for the auto-profiler</td><td></td></tr>
<tr><td><code></code></td><td>up to 10 by-vars for the auto-profiler</td><td></td></tr>
<tr><td><code></code></td><td>1 = export descsave codebook in 300_labels</td><td></td></tr>
</tbody></table></div>
<h2 id="rebuilding-everything">Rebuilding everything</h2>
<p>After editing any do-file, rebuild the website with:</p>
<pre class="stlog"><span class="stinp">. do "_datashare/Insurance_PriceTransparency/BCBSTX/_documentation/_runall.do"</span></pre>
<p><code>_runall.do</code> calls <code>webdoc2 file.do, replace cleanup</code> for every numbered file, then builds <code>index.html</code> and <code>help.html</code> last. On Mac it opens <code>index.html</code> at the end.</p>
<p>To rebuild ONE page only:</p>
<pre class="stlog"><span class="stinp">. webdoc2 "_datashare/Insurance_PriceTransparency/BCBSTX/_code/400_data_profiler.do", replace cleanup open</span></pre>
<h2 id="file-naming-conventions-cheatsheet">File-naming conventions (cheatsheet)</h2>
<ul class="wd-list-dashed">
<li>Folder names are <b>source agencies</b> — <code>TEA_AEIS</code>, <code>THECB</code>, <code>TDI</code> — not topics or dates.</li>
<li>File names start with year/timespan (when relevant): <code>2006_Discipline.dta</code>, <code>2006_2010_Probation.dta</code>.</li>
<li>No <code>_final</code>, no initials, no timestamps in primary names — those belong in <code>_archive/</code>.</li>
<li>Merged files name the joined sources: <code>Discipline_Enrollment_Tickets.dta</code>.</li>
<li>Versioning uses <code>_v1</code>, <code>_v2</code> only for true releases. Prior cuts go to <code>_archive/</code>.</li>
</ul>
<p>Full conventions: <code>_datashare/_documentation/README_NamingConventions.txt</code></p>
<h2 id="extending-r-python-gis-javascript">Extending: R, Python, GIS, JavaScript</h2>
<p>The Stata pipeline is canonical. To add work in another language, drop parallel files into <code>_code/</code> using the same numeric step + a language-appropriate extension:</p>
<div class="mb-4"> <div class="accordion" id="accordionExample"> <div class="accordion-item"> <h2 class="accordion-header"> <button class="accordion-button collapsed text-primary" type="button" data-bs-toggle="collapse" data-bs-target="#collapse10" aria-expanded="false" aria-controls="collapse10"> <small>Click to view code</small> </button></h2> <div id="collapse10" class="accordion-collapse collapse" data-bs-parent="#accordionExample"><div class="accordion-body">
<pre id="stlog-1" class="stlog"><samp><span class="stinp">. <span class="stcmt">* Equivalent steps in different languages</span></span>
<span class="stinp">. <span class="stcmt">* 100_data_download.do Stata (canonical)</span></span>
<span class="stinp">. <span class="stcmt">* 100_data_download.R R alternative</span></span>
<span class="stinp">. <span class="stcmt">* 100_data_download.py Python alternative</span></span>
<span class="stinp">. <span class="stcmt">* 200_data_management.ipynb Jupyter notebook</span></span>
<span class="stinp">. <span class="stcmt">* 500_aggregation.qgz QGIS project</span></span>
<span class="stinp">. <span class="stcmt">* 600_analysis_dashboard.html static dashboard built by 600</span></span>
</samp></pre>
</div> </div> </div> </div> </div> <br>
<p>Outputs from non-Stata code still land in <code>02_cleaned/</code> (cross-language artifacts: <code>.parquet</code>, <code>.csv</code>, <code>.feather</code>) or <code>03_output/</code> (deliverables).</p>
<h2 id="path-globals-set-by-000-controlfile-do">Path globals (set by 000_controlfile.do)</h2>
<div class="table-responsive"><table class="table table-sm">
<thead><tr><th>Global</th><th>Resolves to</th></tr></thead><tbody>
<tr><td><code>Shared drives/Data and Research Team</code></td><td>Google Drive root (Shared drives/Data and Research Team)</td></tr>
<tr><td><code>_codeshare</code></td><td>Shared drives/Data and Research Team/_codeshare</td></tr>
<tr><td><code>Shared drives/Data and Research Team/_datashare</code></td><td>Shared drives/Data and Research Team/_datashare</td></tr>
<tr><td><code>_datashare/Insurance_PriceTransparency/BCBSTX</code></td><td>this project folder</td></tr>
<tr><td><code>_datashare/Insurance_PriceTransparency/BCBSTX/01_raw</code> / <code>_datashare/Insurance_PriceTransparency/BCBSTX/01_raw/_converted</code></td><td>raw files / machine-converted copies</td></tr>
<tr><td><code>_datashare/Insurance_PriceTransparency/BCBSTX/02_cleaned</code></td><td>cleaned analytic tables</td></tr>
<tr><td><code>_datashare/Insurance_PriceTransparency/BCBSTX/03_output</code></td><td>output deliverables</td></tr>
<tr><td><code>_datashare/Insurance_PriceTransparency/BCBSTX/_code</code></td><td>do-files</td></tr>
<tr><td><code>_datashare/Insurance_PriceTransparency/BCBSTX/_documentation</code> / <code>_datashare/Insurance_PriceTransparency/BCBSTX/_documentation/website</code></td><td>documentation / built website</td></tr>
</tbody></table></div>
<h2 id="creating-a-new-datashare-project">Creating a new datashare project</h2>
<p>From any Stata session:</p>
<pre class="stlog"><span class="stinp">. projectbuilder MySource_Subsource, desc("Short description") url("https://source.example.com/")</span></pre>
<p>This scaffolds <code>_datashare/MySource_Subsource/</code> with the full folder tree, all seven do-files, and the documentation templates pre-filled. See <code>help projectbuilder</code> for options.</p>
<h2 id="contacts">Contacts</h2>
<ul class="wd-list-dashed">
<li>Maintained by: Texas 2036 Data + Research team</li>
<li>Webdoc2 + projectbuilder author: Eric Booth</li>
<li>Bugs / feature ideas: open an issue in the team's internal tracker</li>
</ul>
</body>
</html>