check_sibling_order: Check which sibling has more of the outcome

Description Usage Arguments Value

View source: R/helpers_regression.R

Description

This function dds a column order by comparing which familial member has more of the outcome. This is done per pair (i.e. row).

Usage

1
check_sibling_order(data, outcome, pair_identifiers, row)

Arguments

data

The data set with kinship pairs.

outcome

A character string containing the outcome variable of interest.

pair_identifiers

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

row

The row number of the data frame

Value

A character string signifying which familial member (1, 2, or neither) has more of the outcome.


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