grap_ped: Return a compact, individual-centered pedigree by iteratively...

Description Usage Arguments Examples

Description

This function returns a pedigree object (as specified in the kinship2-package) for a given individual by iteratively adding spouses and first degree relatives until a given size is reached.

Usage

1
2
grap_ped(x = NULL, df_ind = NULL, relate = NULL, subsample_id = NULL,
  min_size = 300, max_count = 9)

Arguments

x

ID of individual for which a pedigree should be composed.

df_ind

A dataframe for genealogical relations providing the variables 'id', 'momid' and 'dadid'

relate

A relationshi matrix specifying twin zygosity (1=MZ, 2=DZ, 3=unknown)

subsample_id

A vector of IDs (Set 'as.numeric(dimnames(evmat)$id') for IDs with events)

min_size

Minimum size of pedigree of interest (Default is 200)

max_count

Maximum number of iterations in adding relatives to pedigree

Examples

1
2
3
4
## Not run: 
grap_ped(1067, df_ped)

## End(Not run)

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