nlswork: National Longitudinal Survey of Young Working Women

Description Usage Format Details Source References Examples

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

1

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.

Source

Datasets for Stata Longitudinal/Panel-Data Reference Manual, Release 10: National Longitudinal Survey. Young Women 14-26 years of age in 1968, https://www.stata-press.com/data/r10/nlswork.dta.

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
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 )

## End(Not run)

Example output

Loading required package: maxLik
Loading required package: miscTools

Please cite the 'maxLik' package as:
Henningsen, Arne and Toomet, Ott (2011). maxLik: A package for maximum likelihood estimation in R. Computational Statistics 26(3), 443-458. DOI 10.1007/s00180-010-0217-1.

If you have questions, suggestions, or comments regarding the 'maxLik' package, please use a forum or 'tracker' at maxLik's R-Forge site:
https://r-forge.r-project.org/projects/maxlik/
     idcode          year          birth_yr          age             race      
 Min.   :   1   Min.   :68.00   Min.   :41.00   Min.   :14.00   Min.   :1.000  
 1st Qu.:1327   1st Qu.:72.00   1st Qu.:46.00   1st Qu.:23.00   1st Qu.:1.000  
 Median :2606   Median :78.00   Median :48.00   Median :28.00   Median :1.000  
 Mean   :2601   Mean   :77.96   Mean   :48.09   Mean   :29.05   Mean   :1.303  
 3rd Qu.:3881   3rd Qu.:83.00   3rd Qu.:51.00   3rd Qu.:34.00   3rd Qu.:2.000  
 Max.   :5159   Max.   :88.00   Max.   :54.00   Max.   :46.00   Max.   :3.000  
                                                NA's   :24                     
      msp            nev_mar           grade          collgrad    
 Min.   :0.0000   Min.   :0.0000   Min.   : 0.00   Min.   :0.000  
 1st Qu.:0.0000   1st Qu.:0.0000   1st Qu.:12.00   1st Qu.:0.000  
 Median :1.0000   Median :0.0000   Median :12.00   Median :0.000  
 Mean   :0.6029   Mean   :0.2297   Mean   :12.53   Mean   :0.168  
 3rd Qu.:1.0000   3rd Qu.:0.0000   3rd Qu.:14.00   3rd Qu.:0.000  
 Max.   :1.0000   Max.   :1.0000   Max.   :18.00   Max.   :1.000  
 NA's   :16       NA's   :16       NA's   :2                      
    not_smsa          c_city           south           ind_code     
 Min.   :0.0000   Min.   :0.0000   Min.   :0.0000   Min.   : 1.000  
 1st Qu.:0.0000   1st Qu.:0.0000   1st Qu.:0.0000   1st Qu.: 5.000  
 Median :0.0000   Median :0.0000   Median :0.0000   Median : 7.000  
 Mean   :0.2824   Mean   :0.3572   Mean   :0.4096   Mean   : 7.693  
 3rd Qu.:1.0000   3rd Qu.:1.0000   3rd Qu.:1.0000   3rd Qu.:11.000  
 Max.   :1.0000   Max.   :1.0000   Max.   :1.0000   Max.   :12.000  
 NA's   :8        NA's   :8        NA's   :8        NA's   :341     
    occ_code          union           wks_ue          ttl_exp      
 Min.   : 1.000   Min.   :0.000   Min.   : 0.000   Min.   : 0.000  
 1st Qu.: 3.000   1st Qu.:0.000   1st Qu.: 0.000   1st Qu.: 2.462  
 Median : 3.000   Median :0.000   Median : 0.000   Median : 5.058  
 Mean   : 4.778   Mean   :0.234   Mean   : 2.548   Mean   : 6.215  
 3rd Qu.: 6.000   3rd Qu.:0.000   3rd Qu.: 0.000   3rd Qu.: 9.128  
 Max.   :13.000   Max.   :1.000   Max.   :76.000   Max.   :28.885  
 NA's   :121      NA's   :9296    NA's   :5704                     
     tenure           hours           wks_work         ln_wage     
 Min.   : 0.000   Min.   :  1.00   Min.   :  0.00   Min.   :0.000  
 1st Qu.: 0.500   1st Qu.: 35.00   1st Qu.: 36.00   1st Qu.:1.361  
 Median : 1.667   Median : 40.00   Median : 52.00   Median :1.641  
 Mean   : 3.124   Mean   : 36.56   Mean   : 53.99   Mean   :1.675  
 3rd Qu.: 4.167   3rd Qu.: 40.00   3rd Qu.: 72.00   3rd Qu.:1.964  
 Max.   :25.917   Max.   :168.00   Max.   :104.00   Max.   :5.264  
 NA's   :433      NA's   :67       NA's   :703                     
Loading required package: Formula
Oneway (individual) effect Random Effect Model 
   (Swamy-Arora's transformation)

Call:
plm(formula = ln_wage ~ union + age + grade + not_smsa + south + 
    occ_code, data = nlswork, model = "random")

Unbalanced Panel: n=4140, T=1-12, N=19151

Effects:
                 var std.dev share
idiosyncratic 0.0680  0.2608  0.47
individual    0.0768  0.2771  0.53
theta  : 
   Min. 1st Qu.  Median    Mean 3rd Qu.    Max. 
 0.3147  0.5743  0.6649  0.6255  0.6843  0.7379 

Residuals :
    Min.  1st Qu.   Median     Mean  3rd Qu.     Max. 
-1.91048 -0.12987  0.01605  0.00661  0.15219  2.94706 

Coefficients :
               Estimate  Std. Error t-value  Pr(>|t|)    
(Intercept)  0.44685192  0.02910487  15.353 < 2.2e-16 ***
union        0.13696984  0.00654250  20.935 < 2.2e-16 ***
age          0.01332017  0.00039082  34.083 < 2.2e-16 ***
grade        0.07691373  0.00200286  38.402 < 2.2e-16 ***
not_smsa    -0.13331445  0.00877558 -15.191 < 2.2e-16 ***
south       -0.08620731  0.00846368 -10.186 < 2.2e-16 ***
occ_code    -0.01804890  0.00102729 -17.569 < 2.2e-16 ***
---
Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1

Total Sum of Squares:    2016.9
Residual Sum of Squares: 1346.2
R-Squared:      0.33692
Adj. R-Squared: 0.33671
F-statistic: 1589.64 on 6 and 19144 DF, p-value: < 2.22e-16

sampleSelection documentation built on Jan. 13, 2021, 7:49 p.m.