This is a helper function that adjusts the genotye coding scheme based on the genetic model specified.
adjustModel(data_nomiss,model)
Arguments
data_nomiss: a data frame that contains the phenotype, covariates and genotype columns. Genotypes need to be coded as 0/1/2.
model: The model specified. Must be a string from one of the following: additive, dominant, recessive, or overdominance
Details
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.
Returns
This function returns the data frame with the same columns but changed genotype coding based on the genetic model specified.