Displaying 1 result from an estimated 1 matches for "rs743572_2".
2010 Feb 12
1
"drop if missing" command?
...bably seem very simple to experienced R programmers:
I am doing a snp association analysis and am at the model-fitting stage. I
am using the Stats package's "drop1" with the following code:
##geno is the dataset
## the dependent variable (casectrln) is dichotomous and coded 0,1
## rs743572_2 is one of the snps (which is coded 0,1,2 for the 3 genotypes)
library(stats)
modadd = glm(geno$casectrln ~rs743572_2 + factor(racegrp)+ factor(smokgp)+
factor(alcgp)+ factor(bmigp) + factor(ipssgp)
+ agebase, family="binomial")
drop1(mod,scale=0,test=c("Chisq"), x=NULL, k=2)...