Learn R Programming

hwde (version 0.63)

decode.genotypes: Creates contrasts that relate to a single locus

Description

Vectors ma, maa and oset (offset) are returned.

Usage

decode.genotypes(genotype)

Arguments

genotype
The vector genotype holds two-letter codes for the three genotypes. For example, the values may be AA, Aa and aa.

Value

  • osetThe offset values that would be appropriate, in the multiplicative version of the model, if there was just this one locus.
  • maA contrast for the Hardy-Weinberg model, at this locus.
  • maaA contrast that measures departure from the Hardy-Weinberg model, at this locus.
  • typesA vector of length three whose elements are the two-letter codes used for the three genotypes.

See Also

hwde

Examples

Run this code
decode.genotypes(rep(c("AA","Aa","aa"),2))

Run the code above in your browser using DataLab