Overview

This dataset is about substance abuse (cigarettes, marijuana, cocaine, alcohol) among different age groups and states. Data was collected from individual states as part of the NSDUH study. The data ranges from 2002 to 2014. Some values were imputed, meaning that they are estimated. Both totals (in thousands of people) and rates (as a percentage of the population) are given.

https://nsduhweb.rti.org/respweb/homepage.cfm

Downloads

Download all of the following files.

Usage

Begin by adding the above JAR file to your classpath. This library has 1 function you can use.
import corgis.drugs.DrugsLibrary;
import corgis.drugs.domain.*;
import java.util.ArrayList;

public class ExampleClass {
    public static void main(String[] args) {
        // Get access to the library
        DrugsLibrary drugsLibrary = new DrugsLibrary();
        // Access data inside the library
        ArrayList<Report> list_of_report = drugsLibrary.getReports();
    }
}

Documentation

We provide full JavaDoc for this library. Alternatively, you may refer to the below:

 drugsLibrary.getReports()

Returns all of the reports.