Advertisement
Guest User

Untitled

a guest
Sep 16th, 2014
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.00 KB | None | 0 0
  1. dat <- readRDS("TCGA GLUT data.rds")
  2. str(dat)
  3.  
  4. a <- round(summary(lm(SLC2A1 ~ Gender, data=dat))$coefficients, 5)
  5. b <- round(summary(lm(SLC2A1 ~ Race, data=dat))$coefficients, 5)
  6. c <- round(summary(lm(SLC2A1 ~ Age_Dx, data=dat))$coefficients, 5)
  7. d <- round(summary(lm(SLC2A1 ~ Recurrence, data=dat))$coefficients, 5)
  8. e <- round(summary(lm(SLC2A1 ~ Vital_Status, data=dat))$coefficients, 5)
  9. f <- round(summary(lm(SLC2A1 ~ Hashimoto, data=dat))$coefficients, 5)
  10. g <- round(summary(lm(SLC2A1 ~ Histologic_Dx, data=dat))$coefficients, 5)
  11. h <- round(summary(lm(SLC2A1 ~ Max_Size, data=dat))$coefficients, 5)
  12. i <- round(summary(lm(SLC2A1 ~ Metastatic_LN, data=dat))$coefficients, 5)
  13. j <- round(summary(lm(SLC2A1 ~ ETE, data=dat))$coefficients, 5)
  14. k <- round(summary(lm(SLC2A1 ~ T_stage, data=dat))$coefficients, 5)
  15. l <- round(summary(lm(SLC2A1 ~ N_stage, data=dat))$coefficients, 5)
  16. m <- round(summary(lm(SLC2A1 ~ Stage, data=dat))$coefficients, 5)
  17. n <- round(summary(lm(SLC2A1 ~ BRAF_V600E, data=dat))$coefficients, 5)
  18.  
  19. SLC2A1.result <- rbind(a,b,c,d,e,f,g,h,i,j,k,l,m,n)
  20. SLC2A1.result
  21.  
  22. result <- data.frame()
  23. for (i in 28:63){
  24. a <- summary(lm(dat[,i] ~ Gender, data=dat))$coefficients
  25. b <- summary(lm(dat[,i] ~ Race, data=dat))$coefficients
  26. c <- summary(lm(dat[,i] ~ Age_Dx, data=dat))$coefficients
  27. d <- summary(lm(dat[,i] ~ Recurrence, data=dat))$coefficients
  28. e <- summary(lm(dat[,i] ~ Vital_Status, data=dat))$coefficients
  29. f <- summary(lm(dat[,i] ~ Hashimoto, data=dat))$coefficients
  30. g <- summary(lm(dat[,i] ~ Histologic_Dx, data=dat))$coefficients
  31. h <- summary(lm(dat[,i] ~ Max_Size, data=dat))$coefficients
  32. i <- summary(lm(dat[,i] ~ Metastatic_LN, data=dat))$coefficients
  33. j <- summary(lm(dat[,i] ~ ETE, data=dat))$coefficients
  34. k <- summary(lm(dat[,i] ~ T_stage, data=dat))$coefficients
  35. l <- summary(lm(dat[,i] ~ N_stage, data=dat))$coefficients
  36. m <- summary(lm(dat[,i] ~ Stage, data=dat))$coefficients
  37. n <- summary(lm(dat[,i] ~ BRAF_V600E, data=dat))$coefficients
  38. result[i] <- rbind(a,b,c,d,e,f,g,h,i,j,k,l,m,n)
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement