Participants in Opiate Treatment Study
This example renders a plain-text summary of a dataset about participants in an opiate treatment study. It fetches a remote TSV file representing the study’s background table and uses `d3.tsv` to parse it, then displays the file size in kilobytes, row count, and column count inside a large `<pre>` element. The code also demonstrates alternative parsing approaches with `fetch` and `d3.csvParse`, though only the `d3.tsv` path is active. The visualization is minimal, focusing on data-loading mechanics rather than graphical representation.
AI-generated descriptionThe primary purpose of this 16-week maintenance study is to determine the safety and effectiveness of 8 mg per day sublingual buprenorphine as compared to 1 mg per day sublingual buprenorphine in decreasing illicit opiate use as measured by urine testing 3 times a week, retention rates, and opiate craving and global rating scores in patients who meet DSM-III-R criteria for opiate dependence. This data is from the background table, giving background characteristics of the study participants.
https://gist.github.com/sophburke/28350a4b56afc08cfd78fd17b3bb0552