powered by
HWChisqMat executes the Chisquare test for HWE for each row in a matrix.
HWChisqMat(X, ...)
Vector with the p-values of each test
Vector with the chi-square statistics
Vector with deviations from independence
A n times 3 matrix of genotypic counts (AA,AB,BB)
extra arguments that are passed on to HWChisq
HWChisq
Jan Graffelman jan.graffelman@upc.edu
X <- HWData(100,10) colnames(X) <- c("MM","MN","NN") Results <- HWChisqMat(X) Output <- cbind(X,Results$chisqvec,Results$pvalvec) print(Output)
Run the code above in your browser using DataLab