knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
library(signatureFlow)
data(phe);data(expr) cleanData = clean(phe,expr)
library(survival) featureNames=sample(as.vector(as.data.frame(expr[,1])),10) uniCoxRes=NULL for(i in featureNames){ #i=featureNames[1] cox <- coxph(Surv(survivalTime,survivalStatus) ~ cleanData[,i], data = cleanData) coxSumm = summary(cox) uniCoxRes = cbind(uniCoxRes,simpleSummary(coxSumm)) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.