# NOT RUN {
#
# Autosomal tri-allelic (not accounting for gender)
#
x <- c(AA=20,AB=31,AC=26,BB=15,BC=12,CC=0)
# }
# NOT RUN {
out <- HWTriExact(x)
# }
# NOT RUN {
#
# Autosomal tri-allelic accounting for gender
#
males <- c(A=1,B=21,C=34)
females <- c(AA=0,AB=1,AC=0,BB=8,BC=24,CC=15)
# }
# NOT RUN {
out <- HWTriExact(females,males)
# }
# NOT RUN {
#
# X-chromosomal tri-allelic accounting for gender
#
males <- c(A=1,B=21,C=34)
females <- c(AA=0,AB=1,AC=0,BB=8,BC=24,CC=15)
# }
# NOT RUN {
out <- HWTriExact(females,males)
# }
Run the code above in your browser using DataLab