checkContSig: Calculate association between survival and a continuous...

Description Usage Arguments Value Examples

View source: R/checkContSig.R

Description

Calculate association between survival and a continuous measure#' @inheritParams allPvals

Usage

1
checkContSig(measure, time, event)

Arguments

measure

A continuous variable used to order survival data. Samples must be ordered exactly as in time and event

time

A numeric vector of sample time-to-event data, ordered exactly as measure. Must not contain NAs

event

A vector of sample event data, ordered exactly as measure. Must not contain NAs

Value

p-value of association between measure and survival

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
library(survivALL)
library(Biobase)
data(nki_subset)

#Calculate p-value for continuous measure SCUBE2
srv_dfr <- data.frame(measure = exprs(nki_subset)["NM_020974", ],
                      time = nki_subset$t.dmfs,
                      event = nki_subset$e.dmfs
                      )

checkContSig(srv_dfr$measure, srv_dfr$time, srv_dfr$event)

survivALL documentation built on May 1, 2019, 11:02 p.m.