pairSum: Combine person-specific covariates to pair-specific

View source: R/pairSum.q

pairSumR Documentation

Combine person-specific covariates to pair-specific

Description

Functions to combine person-specific covariates to pair-specific

Usage

pairSum(cov1, cov2)
pairDiff(cov1, cov2)

Arguments

cov1
cov2

Details

For use within the ibdreg package to make covariates that are a function of the two covariates in a relative pair. These functions are to be used in the formula parameter of ibdreg, and the pair-specific covariates can be expressed as pairSum(cov) or pairSum(cov, cov).

Value

Either the sum or the difference (absolute) of the two covariates

See Also

ibdreg

Examples

pairSum(20,30)

pairDiff(20,30)

ibdreg documentation built on Nov. 16, 2022, 5:14 p.m.