pedigree {kinship} | R Documentation |
Create pedigree structure in format needed for plotting function.
pedigree(id, dadid, momid, sex, affected, status, relations)
id |
Identification variable for individual |
dadid |
Identification variable for father |
momid |
Identification variable for mother |
sex |
Gender of individual noted in `id'. Character("male","female","unknown", "terminated") or numeric (1="male", 2="female", 3="unknown", 4="terminated") allowed. |
affected |
One variable, or a matrix, indicating affection status. Assumed that 1="unaffected", 2="affected", NA or 0 = "unknown". |
status |
Status (0="censored", 1="dead") |
relations |
A matrix with 3 columns (id1, id2, code) specifying special relationship between pairs of individuals. Codes: 1=Monozygotic twin, 2=Dizygotic twin, 3=Twin of unknown zygosity, 4=Spouse and no children in pedigree |
An object of class pedigree.
## Not run: ptemp <- pedigree(id=d10$upn, dadid=d10$dadid,momid=d10$momid, sex=d10$sex, affected=d10$affect) plot(ptemp) ## End(Not run)