Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pvals <- numeric(nrow(SNP))
- for(i in 1:nrow(SNP)) {
- fit <- cor.test(vector, as.numeric(SNP[i,c(4:50)]), method='spearman', exact=FALSE)
- pvals[i] <- fit$p.value
- names(pvals)[i] <- paste(SNP$V1[i], SNP$V2[i])
- }
Add Comment
Please, Sign In to add comment