check_discord_errors: Check for common errors in the discord regression function

Description Usage Arguments Value

View source: R/helpers_regression.R

Description

Check for common errors in specifying id, sex, and race columns for discord regressions.

Usage

1
check_discord_errors(data, id, sex, race, pair_identifiers)

Arguments

data

The data to perform a discord regression on.

id

A unique kinship pair identifier.

sex

A character string for the sex column name.

race

A character string for the race column name.

pair_identifiers

A character vector of length two that contains the variable identifier for each kinship pair.

Value

An error message if one of the conditions are met.


discord documentation built on July 15, 2021, 9:06 a.m.