phenotype permutation in GWAS
1
0
Entering edit mode
5.3 years ago
mel22 ▴ 100

Hi I am working on GWAS with a logisitic regression model in R, and I need to do a big number o iteration to permute the phenotypes between cases and controls in the GWAS, the problem that i don't have any idea how to apply this in R?

R snp • 1.3k views
ADD COMMENT
0
Entering edit mode

Thank you very much Asaf !

ADD REPLY
2
Entering edit mode
5.3 years ago
Asaf 10k

If you want to randomly shuffle the phenotype values you can use sample(x, length(x))

ADD COMMENT

Login before adding your answer.

Traffic: 2152 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6