survival analysis in R
1
0
Entering edit mode
3.8 years ago
jyotsnap • 0

how to derive overall survival from geo dataset in R studio, please mention code and packages to install also

R • 1.3k views
ADD COMMENT
0
Entering edit mode

Thankyou for providing link...will you please help me in coding of dataset GSE 29272(Gastric cancer) ...i have to get overall analysis report of this particular dataset survival analysis in R

ADD REPLY
0
Entering edit mode
library(survival)
  library(RegParallel)

  res <- RegParallel(
    data = coxdata,
    formula = 'Surv(Time.RFS, Distant.RFS) ~ [*]',
    FUN = function(formula, data)
      coxph(formula = formula,
        data = data,
        ties = 'breslow',
        singular.ok = TRUE),
    FUNtype = 'coxph',
    variables = colnames(coxdata)[9:ncol(coxdata)],
    blocksize = 2000,
    cores = 2,
    nestedParallel = FALSE,
    conflevel = 95)
  res <- res[!is.na(res$P),]
  res

please explain this part of code (survival analysis in R) for getting hazard ratio...what is formula, data and breslow, please clarify

ADD REPLY
0
Entering edit mode

Please use ADD COMMENT/ADD REPLY when responding to existing posts to keep threads logically organized. SUBMIT ANSWER is for new answers to original question.

ADD REPLY
3
Entering edit mode
3.8 years ago

Sure, you want a beer with that, too?

Take a look: Survival analysis with gene expression

Kevin

ADD COMMENT
0
Entering edit mode

l

ibrary(survival) library(RegParallel)

res <- RegParallel( data = coxdata, formula = 'Surv(Time.RFS, Distant.RFS) ~ [*]', FUN = function(formula, data) coxph(formula = formula, data = data, ties = 'breslow', singular.ok = TRUE), FUNtype = 'coxph', variables = colnames(coxdata)[9:ncol(coxdata)], blocksize = 2000, cores = 2, nestedParallel = FALSE, conflevel = 95) res <- res[!is.na(res$P),] res

please explain this part of code (survival analysis in R) for getting hazard ratio...what is formula, data and breslow, please clarify

ADD REPLY
0
Entering edit mode

please research these things yourself.

ADD REPLY

Login before adding your answer.

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