Age (in years).
Number of years of education.
Number of years of work experience.
Gender of the person.
Marital status (0
if unmarried; 1
if married).
Occupational category ('management'
, 'sales'
, 'clerical'
, 'service'
, 'professional'
, and 'other'
).
Ethnicity/Race ('white'
, 'hispanic'
, and 'other'
).
Sector ('other'
, 'manufacturing'
, or 'construction'
).
Indicator variable for southern region (1
if a person lives in the South; 0
if a person does not live in the South).
Indicator variable for union membership (1
if union member; 0
if not a union member).
Log-transformed wage (in dollars per hour).
Returns a random sample of 534 workers from the Current Population Survey (CPS) from 1985.
require
. We assume that invocations are infrequent, and we want to avoid the require
cache. This means that we allow data to be garbage collected and a user is responsible for explicitly caching data.data
var data = dataset();
// returns [ {...}, {...}, ... ]
Data for individual worker.