This function restructures data to determine kinship differences.
discord_data_fast(
data,
outcome,
predictors,
id = NULL,
sex = "sex",
race = "race",
pair_identifiers,
demographics = "both",
coding_method = "none"
)
The data set with kinship pairs
A character string containing the outcome variable of interest.
A character vector containing the column names for predicting the outcome.
Default's to NULL. If supplied, must specify the column name corresponding to unique kinship pair identifiers.
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
Indicator variable for if the data has the sex and race demographics. If both are present (default, and recommended), value should be "both". Other options include "sex", "race", or "none".
A character string that indicates what kind of additional coding schemes should be used. Default is none. Other options include "binary" and "multi".