Question: phenotype permutation in GWAS
0
gravatar for melania 2282
4 weeks ago by
melania 228220
melania 228220 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 • 152 views
ADD COMMENTlink modified 4 weeks ago • written 4 weeks ago by melania 228220

Thank you very much Asaf !

ADD REPLYlink written 4 weeks ago by melania 228220
2
gravatar for Asaf
4 weeks ago by
Asaf6.4k
Israel
Asaf6.4k wrote:

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

ADD COMMENTlink written 4 weeks ago by Asaf6.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: 2312 users visited in the last hour