Question: phenotype permutation in GWAS
0
gravatar for melania 2282
12 months ago by
melania 228290
melania 228290 wrote:

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?

snp R • 414 views
ADD COMMENTlink modified 12 months ago • written 12 months ago by melania 228290

Thank you very much Asaf !

ADD REPLYlink written 12 months ago by melania 228290
2
gravatar for Asaf
12 months ago by
Asaf8.4k
Israel
Asaf8.4k wrote:

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

ADD COMMENTlink written 12 months ago by Asaf8.4k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 862 users visited in the last hour