coxfilter: A filter function for univariate Cox regression.
Description
A function that performs Cox regression with bindings for surt,
cens, and p is returned. This function filters genes
according to the attained p-value from a Cox regression using
surt as the survival times, and cens as the censoring
indicator. It requires survival.
Usage
coxfilter(surt, cens, p)
Arguments
surt
Survival times.
cens
Censoring indicator.
p
The p-value to use in filtering.
Value
Calls to the coxph function in the survival
library are used to fit a Cox model. The filter function returns
TRUE if the p-value in the fit is less than p.