Learn R Programming

sampleSelection (version 1.2-12)

nlswork: National Longitudinal Survey of Young Working Women

Description

The nlswork data frame contains data about 4711 young working women who had an age of 14--26 years in 1968. These data are collected within the "National Longitudinal Survey" over the years 1968-1988 (with gaps). There are 28534 observations in total.

Usage

data(nlswork)

Arguments

Format

This data frame contains the following columns:

idcode

NLS ID.

year

interview year.

birth_yr

birth year.

age

age in current year.

race

1=white, 2=black, 3=other.

msp

1 if married, spouse present.

nev_mar

1 if never married.

grade

current grade completed.

collgrad

1 if college graduate.

not_smsa

1 if not SMSA.

c_city

1 if central city.

south

1 if south.

ind_code

industry of employment.

occ_code

occupation.

union

1 if union.

wks_ue

weeks unemployed last year.

ttl_exp

total work experience.

tenure

job tenure, in years.

hours

usual hours worked.

wks_work

weeks worked last year.

ln_wage

ln(wage/GNP deflator).

Details

Two different versions of this data set are available on the internet. They are slighly different: The variable wks_work (weeks worked last year) is 101 in this version (from Stata), but NA in the version provided by the Boston College for the observation with idcode = 1 and year = 83. Moreover, this variable is NA in this version (from Stata), but 104 in the version provided by the Boston College for the observation with idcode = 2 and year = 87.

References

Boston College, National Longitudinal Survey. Young Women 14-26 years of age in 1968, https://fmwww.bc.edu/ec-p/data/stata/nlswork.dta.

Examples

Run this code
# NOT RUN {
data( "nlswork" )
summary( nlswork )

# }
# NOT RUN {
library( "plm" )
nlswork <- plm.data( nlswork, c( "idcode", "year" ) )
plmResult <- plm( ln_wage ~ union + age + grade + not_smsa + south + occ_code,
   data = nlswork, model = "random" )
summary( plmResult )
# }

Run the code above in your browser using DataLab