r_val: Returns the relatedness coefficient between two individuals...

Description Usage Arguments Examples

Description

This function returns the relatedness coefficient between two individuals of a given pedigree.

Usage

1
r_val(ped = NULL, x = NULL, y = NULL)

Arguments

ped

Pedigree object for individuals 1 and 2

x

ID of individual 1

y

ID of individual 2

Examples

1
2
3
exmpl_df <- get_exmpl_df()
ped <- with(exmpl_df, kinship2::pedigree(id, dadid, momid, sex, affected, status))
r_val(ped, exmpl_df$id[1], exmpl_df$id[2])

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