testing association between snp and the label disease
0
0
Entering edit mode
2.1 years ago
Eliza ▴ 40

Hi, I'm trying to perform Cochran–Armitage test with SNPs in r. my data looks like this: enter image description here

i found the cat function in R to perform that : catt(y, x, score = c(0, 1, 2)) I'm having trouble understanding how to encode the genotypes :

enter image description here

Y is the phenotype and X is supposed to be one column REF or ALT would apricient the help, have been stuck for hours. thank you

cochran test SNP Armitage • 532 views
ADD COMMENT
0
Entering edit mode

Hi @Eliza, this question is highly similar to your previous one at Cochran–Armitage test. To maintain the forum as informative as possible, if anything was not clear in the prior post or needs further explanation, it is best to add a comment there rather than posting a "new" question.

ADD REPLY

Login before adding your answer.

Traffic: 2079 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