powered by
Perform a Linear Regression within the Discordant Kinship Framework
discord_regression( data, outcome, predictors, id = "extended_id", sex = "sex", race = "race", pair_identifiers = c("_s1", "_s2") )
Resulting `lm` object from performing the discordant regression.
A data frame.
A character string containing the outcome variable of interest.
A character vector containing the column names for predicting the outcome.
A unique kinship pair identifier.
A character string for the sex column name.
A character string for the race column name.
A character vector of length two that contains the variable identifier for each kinship pair.
discord_regression(data = sample_data, outcome = "height", predictors = "weight", pair_identifiers = c("_s1", "_s2"), sex = NULL, race = NULL)
Run the code above in your browser using DataLab