Utilities and Kinship Information for Research with the NLSY

Utilities and kinship information for behavior genetics and developmental research using the National Longitudinal Survey of Youth (NLSY; < http://www.bls.gov/nls/>).


GitHubTravis-CIAppVeyorWerckerCoverallsCodecov
Master
Dev
Ubuntu 12.04 LTSWindows Server 2012DockerTravis TestsWercker Tests

Utilities and kinship information for behavior genetics and developmental research using the National Longitudinal Survey of Youth (NLSY)

CRANVersionRateZenodo
Latest
Latest CRAN versionCRAN DownloadsIndependently-hosted Archive

The release version of NlsyLinks can be installed from CRAN.

install.packages("NlsyLinks")

The latest development version of NlsyLinks can be installed from GitHub after installing the devtools package.

install.packages("devtools")
devtools::install_github(repo="LiveOak/NlsyLinks")

This repository contains the code used in the NlsyLinks R package. For additional information about the package and using it in NLSY research, please see http://liveoak.github.io/NlsyLinks/

We now use this GitHub repository as our primary way of managing, tracking, and build-checking versions of the source code. We're no longer using our R-Forge site to check builds. The stable releases (intended for most researchers) is available on the package's CRAN site.

The help forums remain on the package's R-Forge.

The current work on the NLSY Kinship links has been supported by NIH Grant R01-HD065865 (Joe Rodgers, PI).

News

Updates:

  • Small updates to meet new testthat version.

Updates:

  • SurveyDate datset contains survey details for each subject, for each year.
  • Small updates to meet newer CRAN guidelines.

Updates:

  • Small updates to vignettes and documentation.
  • Small updates to meet newer CRAN guidelines about title & description format.
  • Checked with R Tools 3.2.

New Features:

  • A more complete version of the Gen1 links are included. 95% of all Gen1 Housemates have been linked.

Updates:

  • R now has missing values for Gen1 pairs if the 1979 roster (eg, R00001.51) doesn't indicate they're the same generation. If this value is desirable for your research, their R values are still available in RFull.
  • The naming scheme for the Links79Pair and Links79PairExpanded datasets are more consistent across variables. For variables that are measured separately for both subjects (eg, Gender), the subjects' variable name will have an _S1 or _S2 appended to it. For instance, the variables LastSurvey_S1 and LastSurvey_S2 correspond to the last surveys completed by the pair's first and second subject, respectively.
  • Similarly, the functions CreatePairLinksDoubleEntered and CreatePairLinksSingleEntered now by default append _S1 and _S2, instead of _1 and _2. However this can be modified using the subject1Qualifier and subject2Qualifier parameters.
  • Added function ReadCsvNlsy79Gen1()
  • Updated reference manual, ACE vignette, and FAQ.

Updates:

  • Renamed R to RFull. RFull contains all the R values we have. R excludes R values in Gen1Housemates if they're 0, .375, or .75. The associated relationships (ie, Gen2Cousins and AuntNieces) become null for R, but not for RFull.

Updates:

  • Removed code that assigned all unassigned siblings to .375. This doesn't make sense for Gen1, and was mostly an internal experiment (and wasn't released on CRAN).

Updates:

  • Added outcome variables for Gen1. Renamed some outcome variables for Gen2.

Updates:

  • Based on geocode variables, five Gen1 ambiguous twin was demoted to R=0 (two were R=.5; three were R=NULL).

Updates:

  • Rebuilt For R2.15.2 with with RTools216.exe.

Updates:

  • Small documentation updates

Updates:

  • Gen1 Links are more thorough (but still in a beta state)
  • Gen1 and Gen2 information uses the NLSY 2010 survey wave (released this Spring 2012)
  • Refreshing after development interrupt to make sure everything builds and tests correctly

Updates:

  • Added material to appendices of the NlsyAce vignette.
  • Removed 'stringr' package from Depends list. It's no longer used creating lavaan syntax.

New Features:

  • Added ParentChild links.
  • Added Gen1 links (using only Explicit items). There will be much more work to these relationship in the next few months.
  • Added Gen2Cousins & AuntNieces. These will change as the Gen1 links are filled out with implicit information.

Updates:

  • Additional Documentation.

Updates:

  • Started a FAQ (as a vignette).

Updates:

  • Additional documentation and unit tests.
  • Changed R-Forge development status from "Beta" to "Production/Stable"

Updates:

  • Modified some function signatures to be make package more consistent.
  • Additional lavaan example in ACE vignette.

New Features:

  • The new function 'AceLavaanGroup' uses the 'lavaan' package to estimate a multigroup SEM ACE model.

New Features:

  • The S4 class 'AceEstimate' is returned by the 'Ace' function.
  • Methods & functions associated with the AceEstimate class.
  • SubjectDetails79 dataset for Gen2.
  • ReadCsvNlsy79 function.
  • Validation functions: (a) OutComeDataset
  • Column Utilities: (a) VerifyColumnExists, (c) RenameNlsyColumn

New Features:

  • NLS Investigator vignette
  • ACE vignette
  • Generalized AceUnivariate function that wraps DeFriesFulkerMethod1 and DeFriesFulkerMethod3.
  • ExtraOutcomes79 dataset
  • Links79PairExpanded dataset
  • Validation functions: (a) OutcomeDataset, (b) PairLinks, (c) PairLinksAreSymmetric
  • Create functions for (a) SpatialNeighbours, (b) PairLinks, (c) SubjectTag
  • Initial submission to CRAN
  • Contains Nlsy79 Gen2 sibling links
  • For a detailed change log, please see https://github.com/LiveOak/NlsyLinks/commits/master.
  • For a list of the major releases, please see https://github.com/LiveOak/NlsyLinks/releases.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("NlsyLinks")

2.0.6 by Will Beasley, 2 years ago


http://liveoak.github.io/NlsyLinks, https://github.com/LiveOak/NlsyLinks, https://r-forge.r-project.org/projects/nlsylinks


Report a bug at https://github.com/LiveOak/NlsyLinks/issues


Browse source code at https://github.com/cran/NlsyLinks


Authors: Will Beasley, Joe Rodgers, David Bard, Michael Hunter, S. Mason Garrison, and Kelly Meredith


Documentation:   PDF Manual  


GPL license


Imports lavaan, methods

Depends on stats

Suggests devtools, ggplot2, knitr, plyr, scales, testit, testthat, xtable


See at CRAN