US Birth Data (1994-2003)
收藏US Birth Data (1994-2003)
Overview
US birth data from 1994 to 2003, as provided by the Center for Disease Control and Preventions National Center for Health Statistics.
Installation
To install the dataset, use the following command:
bash npm install @stdlib/datasets-cdc-nchs-us-births-1994-2003
Alternatively, you can load the package in a website via a script tag without installation and bundlers, use the [ES Module][es-module] available on the [esm][esm-url] branch. For Deno usage, visit the [deno][deno-url] branch. For use in Observable, or in browser/node environments, use the [Universal Module Definition (UMD)][umd] build available on the [umd][umd-url] branch.
Usage
To use the dataset in JavaScript:
javascript var dataset = require( @stdlib/datasets-cdc-nchs-us-births-1994-2003 );
dataset()
Returns US birth data from 1994 to 2003. Each element in the returned database has the following fields:
- year: year.
- month: month, where January is denoted by
1. - date_of_month: day number of the month.
- day_of_week: day of week, where Monday is
1and Sunday is7. - births: number of births.
Examples
An example usage of the dataset to analyze birth patterns:
javascript var incrmean = require( @stdlib/stats-incr-mean ); var dataset = require( @stdlib/datasets-cdc-nchs-us-births-1994-2003 );
function mean( a, b ) { return ( a + b ) / 2.0; }
function reldiff( a, b ) { return 100.0 * ( (a-b)/a ); }
// Retrieve the data: var data = dataset();
// ... (rest of the example code)
CLI
To use as a general utility, install the CLI package globally:
bash npm install -g @stdlib/datasets-cdc-nchs-us-births-1994-2003-cli
Usage
text Usage: cdc-nchs-us-births-1994-2003 [options]
Options:
-h, --help Print this message. -V, --version Print the package version.
Notes
- Data is written to
stdoutas comma-separated values ([CSV][csv]), where the first line is a header line.
References
- Bialik, Carl. 2016. "Some People Are Too Superstitious To Have A Baby On Friday The 13th." https://fivethirtyeight.com/features/some-people-are-too-superstitious-to-have-a-baby-on-friday-the-13th/.
License
The data files (databases) are licensed under an [Open Data Commons Public Domain Dedication & License 1.0][pddl-1.0] and their contents are licensed under [Creative Commons Zero v1.0 Universal][cc0]. The software is licensed under [Apache License, Version 2.0][apache-license].




