adjustModel: Genotype coding adjusement

Description Usage Arguments Details Value

Description

This is a helper function that adjusts the genotye coding scheme based on the genetic model specified.

Usage

1
  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.

Value

This function returns the data frame with the same columns but changed genotype coding based on the genetic model specified.


evian documentation built on May 23, 2019, 5:02 p.m.

Related to adjustModel in evian...