get_qb: Wrapper function to import and format Québec data for...

Description Usage Arguments Examples

Description

This function returns a list containing three data.frames:

  1. Imported 'Individus' SPSS file as read from source.

  2. Dataframe holding individual IDs and those of the parents.

  3. Matrix describing event data in the form date, id, location, special, status. Here, gemini births count as one single event (see get_evmat_twins() for including the birth of twins as multiple events).

  4. Matrix describing event data in the form date, id, location, special, status. Here, gemini births count as one single event (see get_evmat_twins() for including the birth of twins as multiple events).

  5. Matrix describing twin relations in the form 'id1-id2-code', where code stands for 1=monozygotous, 2=dizygotous, 3=unknown. Here, zygosity is soley based on sex and therefore only twins of different sex are given code=2 (i.e. dizygotous), while same-sex twins are classified as unknown (code=3). In the case of triplets (and twins of higher order), each individual will have relations to each of his co-twins.

Usage

1
  get_qb(Individus = "/home/johow/Dropbox/qb/RPQA.MarcKlemp.individus.2012-01-27.sav")

Arguments

Individus

File path to the 'Individus.sav' SPSS file.

Examples

1
2
3
4
notrun{
twinmat <- get_twinmat()
# str(twinmat)
}

johow/kinlab documentation built on July 5, 2019, 4:23 p.m.