This is a helper function that adjusts the genotye coding scheme based on the genetic model specified.
adjustModel(data_nomiss,model)
a data frame that contains the phenotype, covariates and genotype columns. Genotypes need to be coded as 0/1/2.
The model specified. Must be a string from one of the following: additive
, dominant
, recessive
, or overdominance
This function returns the data frame with the same columns but changed genotype coding based on the genetic model specified.
adjustModel
is an interior function that adjusts the genotype coding based on the genetic model specified. The coding scheme for different genetic models can be found in calculateEvianMLE
.