viewHW {fbat} | R Documentation |
View allele frequencies, Hardy-Weinberg equilibrium test statistics for specified marker
Description
View allele frequencies, Hardy-Weinberg equilibrium test statistics for specified marker.
Usage
viewHW(HW.object, markerName)
Arguments
HW.object |
object returned by the function 'pedHardyWeinberg'. |
markerName |
a character string indicating the name of marker whose statistics are to be viewed |
Value
resM |
A vector records the following quantities for the specified marker: nInfoInd (number of informative individuals, i.e. individuals whose genotypes contain no missing alleles for the specified marker), nGenotype (number of possible genotypes), nHET (number of heterozygous genotypes), nHOM (number of homozygous genotypes), nAllele (number of alleles), nMissing (number of missing alleles), chi2 (chi square test statistic), df (degree of freedom of the chi square test statistic under H0), p-value (pvalue of the test). |
nGenotypeM |
number of possible genotypes for the specified marker. |
genotypeM |
possible genotypes and their frequencies. |
piVecM |
allele frequencies. |
Author(s)
Weiliang Qiu stwxq@channing.harvard.edu,
Ross Lazarus ross.lazarus@channing.harvard.edu,
Gregory Warnes warnes@bst.rochester.edu,
Nitin Jain nitin.jain@pfizer.com
Examples
data(CAMP)
res<-pedHardyWeinberg(CAMP)
viewHW(res, "m709")
viewHW(res, "m654")
viewHW(res, "m47")
viewHW(res, "p46")
viewHW(res, "p79")
viewHW(res, "p252")
viewHW(res, "p491")
viewHW(res, "p523")
[Package
fbat version 1.4.0
Index]