Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create pair-year dataset #31

Open
wibeasley opened this issue Nov 4, 2017 · 0 comments
Open

Create pair-year dataset #31

wibeasley opened this issue Nov 4, 2017 · 0 comments
Assignees

Comments

@wibeasley
Copy link
Member

wibeasley commented Nov 4, 2017

Create a dataset with one row per relationship/pair per year.

See Y0003300 and the rest of the 'Q2' 79Gen2 variables.

Variables

  1. year
  2. S1 Tag
  3. S2 Tag
  4. S1 Age (at interview)
  5. S2 Age (at interview)
  6. Proportion of Year S1 & S2 lived together
  7. Cumulative Years Together count
  8. S1 Q (= S1 Age / Cumulative Years Together count)
  9. S2 Q (= S2 Age / Cumulative Years Together count)

Other plumbing variables

  1. RelationshipPath
  2. S1 Generation
  3. S2 Generation
  4. Is survey year (b/c we have a row for every year, not every survey year)

Real-world

  1. the participants aren't surveyed on the same day necessarily, to the proportion & cumulative versions conceivably need two versions (one for each subject's interview date)

Example Scenario

  • Subjects 101 & 102 are half sibs, both born to Gen 1 mom (id: 1) and lived w/ mom all their lives
  • In 2000
    • 101 is 7 y.o.
    • 102 is 2 y.o.

Discussed at the Nov meeting

@wibeasley wibeasley self-assigned this Nov 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant