permutation: permutation for case-control data

Description Usage Arguments Value Author(s) References

Description

This function is to permute cases and controls randomly.

Usage

1
 permuC(phenotype,genotype) 

Arguments

phenotype

numeric vector with phenotype status: 0=controls, 1=cases. No missing data allowed

genotype

numeric matrix or data frame with genotype data coded as 0, 1, 2. No missing data is allowed.

Value

The matrix in which the first column is the phenotype and others are the corresponding genotype after permutation.

Author(s)

Chan Wang and Yue-Qing Hu

References

Chan Wang, Leiming Sun, Liming Li and Yue-Qing Hu, Retrospective Score Test for Case-Control Association Study


chanw0/SLIDE documentation built on May 28, 2019, 5:38 p.m.