pedigree {kinship}R Documentation

Create pedigree structure

Description

Create pedigree structure in format needed for plotting function.

Usage

pedigree(id, dadid, momid, sex, affected, status, relations)

Arguments

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

Value

An object of class pedigree.

See Also

plot.pedigree

Examples

## Not run: 
ptemp <- pedigree(id=d10$upn, dadid=d10$dadid,momid=d10$momid, 
                  sex=d10$sex, affected=d10$affect)
plot(ptemp)
## End(Not run)

[Package kinship version 1.1.0-21 Index]