adjustModel {evian} | R Documentation |
Genotype coding adjusement
Description
This is a helper function that adjusts the genotye coding scheme based on the genetic model specified.
Usage
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: |
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
.
Value
This function returns the data frame with the same columns but changed genotype coding based on the genetic model specified.
[Package evian version 2.1.0 Index]