This is a test version of Biostars. For the public version, visit https://www.biostars.org.
survival analysis in R

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

r

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

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

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.

1 answer

Sure, you want a beer with that, too?

Take a look: Survival analysis with gene expression

Kevin

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

please research these things yourself.

Log in to answer this question.