Learn R Programming

NlsyLinks (version 1.003)

SubjectDetails79: Dataset containing further details of teh Gen1 and Gen2 subjects.

Description

These variables are useful to many types of analyses (not just behavior genetics), and are provided to save users time.

Usage

data(SubjectDetails79)

Arguments

source

Gen1 information comes from the May 15, 2010 release of the http://www.bls.gov/nls/nlsy79.htm{NLSY79 sample}. Gen2 information comes from the Sept 15, 2010 release of the http://www.bls.gov/nls/nlsy79ch.htm{NLSY79 Children and Young Adults sample}. Data were extracted with the NLS Investigator (https://www.nlsinfo.org/investigator/).

Examples

Run this code
library(NlsyLinks) #Load the package into the current R session.
data(SubjectDetails79)  #Load the dataset from the NlsyLinks package.

summary(SubjectDetails79)

oldPar <- par(mfrow=c(3,2))
hist(SubjectDetails79$SiblingCountInNls)
hist(SubjectDetails79$BirthOrderInNls)
hist(SubjectDetails79$SimilarAgeCount)
hist(SubjectDetails79$KidCountBio)
hist(SubjectDetails79$KidCountInNls)
hist(SubjectDetails79$Mob, 
  breaks=seq.Date(
    from=min(SubjectDetails79$Mob, na.rm=TRUE), 
    to=max(SubjectDetails79$Mob, na.rm=TRUE), 
    by="year")
)
par(oldPar)

Run the code above in your browser using DataLab