Overview

From the United States Cancer Statistics as part of the U.S. Center for Disease Control, the following data set focuses on the crude rate for all types of cancer reported for different demograpic groups. Significant groupings include age, gender, race and geographical area.

http://www.cdc.gov/cancer/npcr/uscs/download_data.htm

Downloads

Download all of the following files.

Usage

Begin by adding the above JAR file to your classpath. This library has 3 functions you can use.
import corgis.cancer.CancerLibrary;
import corgis.cancer.domain.*;
import java.util.ArrayList;

public class ExampleClass {
    public static void main(String[] args) {
        // Get access to the library
        CancerLibrary cancerLibrary = new CancerLibrary();
        // Access data inside the library
        ArrayList<Report> list_of_report = cancerLibrary.getReports(false);ArrayList<Report> list_of_report = cancerLibrary.getReportsByYear(1999, false);ArrayList<Report> list_of_report = cancerLibrary.getReportsByArea("Alabama", false);
    }
}
Additionally, some of the functions can optionally return Big Data using the last argument (setting it to true). If you use this Big Data, it may be much slower. Wait until you are sure your code is correct before using these examples.
import corgis.cancer.CancerLibrary;
import corgis.cancer.domain.*;
import java.util.ArrayList;

public class ExampleClass {
    public static void main(String[] args) {
        // Get access to the library
        CancerLibrary cancerLibrary = new CancerLibrary();
        // Access data inside the library
        ArrayList<Report> list_of_report = cancerLibrary.getReports(true);ArrayList<Report> list_of_report = cancerLibrary.getReportsByYear(1999, true);ArrayList<Report> list_of_report = cancerLibrary.getReportsByArea("Alabama", true);
    }
}

Documentation

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

 cancerLibrary.getReports(test)

Returns cancer reports from the dataset.

 cancerLibrary.getReportsByYear(year, test)

Given a year, returns all the cancer reports for that year in the database.

 cancerLibrary.getReportsByArea(area, test)

Given a area, returns all the cancer reports for that area in the database.